Download the PHP package sansanlabs/laravel-git-ftp-deployer without Composer
On this page you can find all versions of the php package sansanlabs/laravel-git-ftp-deployer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sansanlabs/laravel-git-ftp-deployer
More information about sansanlabs/laravel-git-ftp-deployer
Files in sansanlabs/laravel-git-ftp-deployer
Package laravel-git-ftp-deployer
Short Description Laravel Git-FTP deployment package with git status checking and build integration
License MIT
Homepage https://github.com/sansanlabs/laravel-git-ftp-deployer
Informations about the package laravel-git-ftp-deployer
Laravel Git-FTP Deployer
A Laravel package for deploying applications via FTP with git status checking and build process integration.
Features
- ✅ Check git status before deployment
- ✅ Prevent deployment with uncommitted changes
- ✅ Prevent deployment with unpushed commits
- ✅ Run build commands (npm, yarn, etc.) before deployment
- ✅ Support multiple environments (staging, production)
- ✅ Beautiful tree view for uncommitted changes
- ✅ Cross-platform support (Windows, Linux, macOS)
- ✅ Configurable git-ftp options
Requirements
- PHP ^8.2
- Laravel ^10.0|^11.0|^12.0
- git-ftp installed on your system
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Configuration
Add your FTP credentials to your .env file:
Usage
Basic Deployment
Deploy to staging:
Deploy to production:
Interactive environment selection:
Skip Build Process
Skip the build command:
Configuration Options
The package configuration file config/ftp-deploy.php allows you to customize:
- Environments: Define multiple deployment environments
- Build Command: Command to run before deployment (default: npm run build)
- Git Bash Path: Path to Git Bash executable (Windows only)
- Git FTP Options: Additional options for git-ftp command
Git Status Checking
The package will check for:
- Uncommitted Changes: Files that have been modified but not committed
- Unpushed Commits: Commits that exist locally but haven't been pushed to origin
If either condition is found, deployment will be aborted with a detailed report.
Build Process
Before deployment, the package will run your configured build command (default: npm run build). This ensures your assets are compiled and ready for production.
FTP Deployment
The package uses git-ftp to efficiently deploy only changed files to your FTP server. It supports:
- Force push
- Verbose output
- Auto-initialization of git-ftp
- Custom sync roots and paths
Testing
Upcoming ...
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Edi kurniawan
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-git-ftp-deployer with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.0||^12.0