PHP Git Deploy
PHP Git Deploy PHP Git Deploy

Deploy any project via GitHub push or manual trigger. Lightweight PHP, SSH-based, with flexible post-deploy hooks.

PHP Git Deploy is a lightweight deployment tool designed to solve the frustrations of manual FTP uploads by leveraging Git and webhooks. It is intended as a simpler alternative to complex CI/CD systems, specifically for developers managing projects on shared hosting.

The main features of this tool include:

  • Automated Webhook Deployment: It utilizes a GitHub webhook to trigger a real git pull directly on the server, ensuring your production code is always in sync with your repository.

  • Shared Hosting Compatibility: The tool is specifically designed for environments where SSH access might be blocked, as it can execute shell commands through PHP to perform the update.

  • Efficiency and Speed: By transferring only the specific commits that have changed, it provides a faster and more efficient alternative to re-uploading entire project builds.

  • Post-Deploy Automation: The script can automatically run Composer or other post-deploy commands directly on the server once the code has been fetched.

  • Secure Request Verification: It enhances security by verifying the incoming webhook request before performing any operations.

  • Minimalist Setup: Implementation is straightforward, requiring the developer to simply drop a _deploy/ directory into their project on the host.

  • Elimination of "Mystery Uploads": It removes the need for manual diff sessions or the risk of pushing outdated builds from different machines.