wolnosciowiec / wolnosciowiec-web-deploy
Deploys the application from web instead of shell, which fits for smaller applications hosted on shared hostings
Installs: 441
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
pkg:composer/wolnosciowiec/wolnosciowiec-web-deploy
Requires
- php: >=7.0
- guzzlehttp/psr7: 1.3.*
- zendframework/zend-diactoros: ~1.0
Requires (Dev)
- phpunit/phpunit: 5.5.*
- robmorgan/phinx: >=0.4
- symfony/var-dumper: ^3.1
This package is not auto-updated.
Last update: 2020-01-24 16:34:46 UTC
README
A Framework for creation of post-install scripts dedicated for applications hosted on shared hosting (without access to the shell).
Allows to execute scripts after installing the application on the destination FTP server. Examples of usage: Clear the cache, migrate the application's database
Contains builtin tasks:
- PhinxMigrateTask
Example of usage
<?php require __DIR__ . '/../vendor/autoload.php'; // add some authentication here, a token id verification? ip address check? $app = new \Wolnosciowiec\WebDeploy\Kernel(); // register tasks, pass parameters $app->addTask(new \Wolnosciowiec\WebDeploy\Tasks\PhinxMigrateTask()); $response = $app->handleRequest(\GuzzleHttp\Psr7\ServerRequest::fromGlobals()); (new Zend\Diactoros\Response\SapiEmitter)->emit($response);