{"id":15318770,"url":"https://github.com/appleboy/php-git-deploy","last_synced_at":"2025-04-15T02:29:18.351Z","repository":{"id":4359488,"uuid":"5495764","full_name":"appleboy/PHP-Git-Deploy","owner":"appleboy","description":"Git Deployment with PHP","archived":false,"fork":false,"pushed_at":"2014-05-16T02:17:17.000Z","size":171,"stargazers_count":35,"open_issues_count":0,"forks_count":9,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-10T08:31:45.653Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/appleboy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-08-21T13:56:52.000Z","updated_at":"2024-04-06T00:35:47.000Z","dependencies_parsed_at":"2022-08-31T11:23:40.968Z","dependency_job_id":null,"html_url":"https://github.com/appleboy/PHP-Git-Deploy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2FPHP-Git-Deploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2FPHP-Git-Deploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2FPHP-Git-Deploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2FPHP-Git-Deploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appleboy","download_url":"https://codeload.github.com/appleboy/PHP-Git-Deploy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248993577,"owners_count":21195220,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T09:02:33.946Z","updated_at":"2025-04-15T02:29:18.321Z","avatar_url":"https://github.com/appleboy.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"PHP-Git-Deploy\n======================\n\nUsing `Post-Receive Hooks` to deploy muliple projects automatically. [![Build Status](https://secure.travis-ci.org/appleboy/PHP-Git-Deploy.png)](http://travis-ci.org/appleboy/PHP-Git-Deploy)\n\nRef: https://developer.github.com/webhooks/\n\nRequirements\n======================\n\nPHP-Git-Deploy works with PHP 5.3 or later.\n\nInstallation via Composer\n======================\n\nCreate a composer.json file in your project root and use it to define simply your dependencies:\n\n```\n{\n    \"require\": {\n        \"appleboy/php-git-deploy\": \"1.0.*\"\n    }\n}\n```\n\nThen install Composer in your project (or download the composer.phar directly):\n\n    $ curl -s http://getcomposer.org/installer | php\n\nAnd finally ask Composer to install the dependencies:\n\n    $ php composer.phar install\n\nInstallation/Usage\n======================\n\nDownload files\n----------------------\n\nDownload and drag the following files into your `application/` folder.\n\n    $ cp -r src/Web your_www/\n\nConfigure your profile\n----------------------\n\nopen `src/Web/config.php` file with your editor. Following is config formats.\n\n```php\n$config['github'] = array(\n    'project_name' =\u003e array(\n        'branch_name' =\u003e array('base_path' =\u003e 'folder_path')\n    )\n);\n```\n\n`project_name` must be the same with your github project name, for example:\n\nYour github project URL is https://github.com/appleboy/PHP-Git-Deploy\n\nThe `project_name` value is `PHP-Git-Deploy`, don't case sensitive.\n\nPlease refer the following example profiles.\n\n##### Single project, Multi branch profile\n\n```php\narray(\n    'php-git-deploy' =\u003e array(\n        'master' =\u003e array('base_path' =\u003e '/path/PHP-Git-Deploy_1/'),\n        'develop' =\u003e array('base_path' =\u003e '/path/PHP-Git-Deploy_2/')\n    )\n);\n```\n\n##### Multi project, Multi branch profile\n\n```php\narray(\n    'php-git-deploy' =\u003e array(\n        'master' =\u003e array('base_path' =\u003e '/path/PHP-Git-Deploy_1/'),\n        'develop' =\u003e array('base_path' =\u003e '/path/PHP-Git-Deploy_2/')\n    ),\n    'codeigniter-my-model' =\u003e array(\n        'master' =\u003e array('base_path' =\u003e '/path/CodeIgniter-MY-Model_1/'),\n        'develop' =\u003e array('base_path' =\u003e '/path/CodeIgniter-MY-Model_2/')\n    )\n);\n```\n\nCreate New index.php\n----------------------\n\nCreate new file `your_www/Web/index.php`, copy the following source code and paste into index.php file.\n\n```php\n\u003c?php\nrequire_once('Deplpoy.php');\n$deploy = new \\Web\\Deploy;\n$deploy-\u003eindex();\n```\n\nSetting Webhook URL\n----------------------\n\nPlease refer the [Post-Receive Hooks Helper](https://help.github.com/articles/post-receive-hooks) page\n\n![Webhook](http://farm8.staticflickr.com/7115/7836097364_d7629b427c_z.jpg \"Webhook\")\n\nAuthor\n======================\n\nBo-Yi Wu (appleboy) \u003cappleboy.tw@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleboy%2Fphp-git-deploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappleboy%2Fphp-git-deploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleboy%2Fphp-git-deploy/lists"}