Skip to content

Instantly share code, notes, and snippets.

@aasumitro
Created March 8, 2021 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aasumitro/d4d590175f217dfcc5f50a5a7c1480c6 to your computer and use it in GitHub Desktop.
Save aasumitro/d4d590175f217dfcc5f50a5a7c1480c6 to your computer and use it in GitHub Desktop.
php exect
#!/usr/bin/env php
<?php
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader
| for our application. We just need to utilize it! We'll require it
| into the script here so that we do not have to worry about the
| loading of any our classes "manually". Feels great to relax.
|
*/
require __DIR__.'/vendor/autoload.php';
print("input arguments :");
$args = fgets(STDIN);
print("/vendor/bin/phinx ${args}");
//exec("/vendor/bin/phinx", $input);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment