PHP Classes

File: vendor/nesbot/carbon/bin/carbon

Recommend this page to a friend!
  Packages of OmDiaries   Laravel AI Email Assistant   vendor/nesbot/carbon/bin/carbon   Download  
File: vendor/nesbot/carbon/bin/carbon
Role: Example script
Content type: text/plain
Description: Example script
Class: Laravel AI Email Assistant
Generate an email message with the OpenAI GPT API
Author: By
Last change:
Date: 4 months ago
Size: 391 bytes
 

Contents

Class file image Download
#!/usr/bin/env php
<?php

use Carbon\Cli\Invoker;

$dir = __DIR__.'/..';

if (!
file_exists($dir.'/autoload.php')) {
   
$dir = __DIR__.'/../vendor';
}

if (!
file_exists($dir.'/autoload.php')) {
   
$dir = __DIR__.'/../../..';
}

if (!
file_exists($dir.'/autoload.php')) {
    echo
'Autoload not found.';
    exit(
1);
}

require
$dir.'/autoload.php';

exit((new
Invoker())(...$argv) ? 0 : 1);