Download the PHP package imamhossain/github-updater without Composer
On this page you can find all versions of the php package imamhossain/github-updater. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download imamhossain/github-updater
More information about imamhossain/github-updater
Files in imamhossain/github-updater
Package github-updater
Short Description Automated GitHub pull and Artisan commands for Laravel
License MIT
Informations about the package github-updater
GitHub Updater for Laravel
Deploy your Laravel app with one click — pull latest code from GitHub, install packages, run migrations, and clear caches, all automatically. Requires login to use.
Installation
Setup
Publish the config file:
Add these to your .env:
GitHub Token: GitHub → Settings → Developer settings → Personal access tokens (classic) → Generate new token → select repo scope.
PHP Path: On shared hosting, make sure GITHUB_UPDATER_PHP points to the CLI version of PHP, not CGI. Check with:
Test each path with /path/to/php -i | grep "Server API" — pick the one that says Command Line Interface.
Usage
Log in to your app, then visit: https://yourdomain.com/github-pull
You'll see a live console showing each step as it runs. If you're not logged in, you'll get an "Access Denied" message.
What it does
- Pulls latest code from GitHub
- Runs
composer install - Runs migrations
- Runs seeders (if
GITHUB_UPDATER_RUN_SEEDERS=true) - Clears and rebuilds cache
- Restarts queue
Requirements
- PHP >= 8.1
- Laravel 9, 10, 11, or 12
- Git installed on the server
License
MIT
All versions of github-updater with dependencies
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
symfony/process Version ^6.0|^7.0