{"id":22296754,"url":"https://github.com/webklex/laravel-git-hook","last_synced_at":"2025-07-29T01:32:36.917Z","repository":{"id":62547939,"uuid":"83911624","full_name":"Webklex/laravel-git-hook","owner":"Webklex","description":"Automatic git deployment for Laravel","archived":false,"fork":false,"pushed_at":"2017-11-08T18:40:02.000Z","size":24,"stargazers_count":17,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-21T20:07:07.717Z","etag":null,"topics":["auto-deployment","deployment","git","git-hook","laravel"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Webklex.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-04T17:29:52.000Z","updated_at":"2023-04-03T00:15:14.000Z","dependencies_parsed_at":"2022-11-02T22:30:26.263Z","dependency_job_id":null,"html_url":"https://github.com/Webklex/laravel-git-hook","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/Webklex/laravel-git-hook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Webklex%2Flaravel-git-hook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Webklex%2Flaravel-git-hook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Webklex%2Flaravel-git-hook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Webklex%2Flaravel-git-hook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Webklex","download_url":"https://codeload.github.com/Webklex/laravel-git-hook/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Webklex%2Flaravel-git-hook/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267616582,"owners_count":24116155,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["auto-deployment","deployment","git","git-hook","laravel"],"created_at":"2024-12-03T17:47:29.546Z","updated_at":"2025-07-29T01:32:36.611Z","avatar_url":"https://github.com/Webklex.png","language":"PHP","readme":"# Git hook deployment made for Laravel\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Software License][ico-license]](LICENSE.md)\n[![Build Status][ico-travis]][link-travis]\n[![Total Downloads][ico-downloads]][link-downloads]\n\n## Install\n\nVia Composer\n\n``` bash\n$ composer require webklex/laravel-git-hook\n```\n\n## Setup\n\nAdd the service provider to the providers array in `config/app.php`.\n\n``` php\n'providers' =\u003e [\n    Webklex\\GitHook\\Providers\\LaravelServiceProvider::class,\n];\n```\n\n## Publishing\n\nYou can publish everything at once\n\n``` php\nphp artisan vendor:publish --provider=\"Webklex\\GitHook\\Providers\\LaravelServiceProvider\"\n```\n\n## Usage\n\nThis library is designed to handle the automatic deployment by git hooks \nas simple as possible. There isn't much todo to get started: just add the\nProvider and edit the `config/git-hook.php` file to make it fit your needs.\n\n\nCustom configuration can be made within the `config/git-hook.php` file:\n\n| Parameter          | Default                           | Options                                   | Description                                                                                               |\n| ------------------ | :-------------------------------: | :---------------------------------------: | --------------------------------------------------------------------------------------------------------: |\n| email_recipients   | `[]`                              | `[['name' =\u003e '', 'address' =\u003e ''], ...]`  | Get notified by mail. Just add your credentials                                                           |\n| email_email_sender | `['address' =\u003e '', 'name' =\u003e '']` | `['address' =\u003e '', 'name' =\u003e '']`         | Specify a custom email sender address                                                                     |\n| repo_path          | `null`                            | Leave empty to auto detect the vcs root   | Perhaps your repository is somehow specially structured, if that's the case, specify your repository path |\n| allowed_sources    | `[]`                              | `['192.168.1.1', '192.168.1.2', ...]`     | If you want to secure the deployment process a bit more, whitelist the remote repository IPs              |\n| remote             | `origin`                          |                                           | Your remote branch name                                                                                   |\n| git_path           | `/usr/bin/git`                    |                                           | Where is the git binary located                                                                           |\n| logfile            | `git-hook`                        |                                           | Name of the logfile. It will be stored under storage/logs                                                 |\n| service            | `github`                          | `github`, `gitbucket`, `gitlab`                     | Define your remote git service. This is required to identify the payload                                  |\n| url                | `git-hook`                        |                                           | Define the deployment url. Keep in mind, that the given parameter will be added to your app.url           |\n| before_pull        | `[]`                              | `['down', ['cmd', ['arg1' =\u003e 1]]]`        | If you have any commands that have to be called before a pull event, specify them here                    |\n| after_pull         | `[]`                              | `['cmd', ['cmd1', ['arg1' =\u003e 1]], 'up']`  | If you have any commands that have to be called after a pull event, specify them here                     |\n\n\nIf you are concerned someone could guess it, use a more cryptic url such as: `JHFUjhd67567JHFGhsd78236784wegfJHFghdgf`\n\n\n## Potential problems:\n\nPlease make sure your `www-data` user can actually perform a git pull on the server without \nhaving to enter a password:\nso you might want to take a look at ssh-keys or something similar\n\n## Change log\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n## Security\n\nIf you discover any security related issues, please email github@webklex.com instead of using the issue tracker.\n\n## Credits\n\n- [Webklex][link-author]\n- All Contributors\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/Webklex/laravel-git-hook.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-travis]: https://img.shields.io/travis/Webklex/laravel-git-hook/master.svg?style=flat-square\n[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/Webklex/laravel-git-hook.svg?style=flat-square\n[ico-code-quality]: https://img.shields.io/scrutinizer/g/Webklex/laravel-git-hook.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/Webklex/laravel-git-hook.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/Webklex/laravel-git-hook\n[link-travis]: https://travis-ci.org/Webklex/laravel-git-hook\n[link-scrutinizer]: https://scrutinizer-ci.com/g/Webklex/laravel-git-hook/code-structure\n[link-code-quality]: https://scrutinizer-ci.com/g/Webklex/laravel-git-hook\n[link-downloads]: https://packagist.org/packages/Webklex/laravel-git-hook\n[link-author]: https://github.com/webklex","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebklex%2Flaravel-git-hook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebklex%2Flaravel-git-hook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebklex%2Flaravel-git-hook/lists"}