infernusophiuchus / porter
Porter helps you with deploying application from dev directory.
0.2.2
2021-02-05 12:34 UTC
Requires
- php: >=7.3
This package is auto-updated.
Last update: 2025-04-05 21:49:56 UTC
README
Porter helps you with deploying application from dev directory.
Install
composer require infernuophiuchus/porter
How to use
Basic CLI implementation might look like this:
#!/usr/bin/env php <?php /** * Porter CLI implementation */ use Infernusophiuchus\Porter\Entrance as Porter; use Infernusophiuchus\Porter\Exceptions\EntranceException; // Special autoloader for avoid loading other packages if you do not need it, // otherwise you can plug Porter via Composer autoloader. require_once __DIR__.'/vendor/infernusophiuchus/porter/src/porter-autoload.php'; try { new Porter($argv); } catch (EntranceException $e) { echo "\nERROR, ".$e->getCode().": ".$e->getMessage()."\n"; }
After implementation completed, you must setup your Porter with set command. Check the help command to learn how and discover other available commands. It is very simple!