Download the PHP package appleboy/php-git-deploy without Composer
On this page you can find all versions of the php package appleboy/php-git-deploy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download appleboy/php-git-deploy
More information about appleboy/php-git-deploy
Files in appleboy/php-git-deploy
Package php-git-deploy
Short Description Git Deployment with PHP
License BSD
Homepage https://github.com/appleboy/PHP-Git-Deploy
Informations about the package php-git-deploy
PHP-Git-Deploy
Using Post-Receive Hooks
to deploy muliple projects automatically.
Ref: https://developer.github.com/webhooks/
Requirements
PHP-Git-Deploy works with PHP 5.3 or later.
Installation via Composer
Create a composer.json file in your project root and use it to define simply your dependencies:
Then install Composer in your project (or download the composer.phar directly):
$ curl -s http://getcomposer.org/installer | php
And finally ask Composer to install the dependencies:
$ php composer.phar install
Installation/Usage
Download files
Download and drag the following files into your application/
folder.
$ cp -r src/Web your_www/
Configure your profile
open src/Web/config.php
file with your editor. Following is config formats.
project_name
must be the same with your github project name, for example:
Your github project URL is https://github.com/appleboy/PHP-Git-Deploy
The project_name
value is PHP-Git-Deploy
, don't case sensitive.
Please refer the following example profiles.
Single project, Multi branch profile
Multi project, Multi branch profile
Create New index.php
Create new file your_www/Web/index.php
, copy the following source code and paste into index.php file.
Setting Webhook URL
Please refer the Post-Receive Hooks Helper page
Author
Bo-Yi Wu (appleboy) [email protected]