Skip to content

Instantly share code, notes, and snippets.

@osteel
Created February 6, 2022 13:02
Show Gist options
  • Save osteel/cb70ee7dd0635983765855c1a12acbe2 to your computer and use it in GitHub Desktop.
Save osteel/cb70ee7dd0635983765855c1a12acbe2 to your computer and use it in GitHub Desktop.
#!/usr/bin/env php
<?php
$root = dirname(__DIR__);
if (! is_file(sprintf('%s/vendor/autoload.php', $root))) {
$root = dirname(__DIR__, 4);
}
require sprintf('%s/vendor/autoload.php', $root);
use Osteel\PhpCliDemo\Commands\Play;
use Symfony\Component\Console\Application;
$application = new Application();
$application->add(new Play());
$application->run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment