Porter helps you with deploying application from dev directory.

0.2.2 2021-02-05 12:34 UTC

This package is auto-updated.

Last update: 2024-07-05 20:21:33 UTC


README

Porter

Porter helps you with deploying application from dev directory.

version PHP version

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!