Download the PHP package amirvahedix/laravel-deploy-ftp without Composer

On this page you can find all versions of the php package amirvahedix/laravel-deploy-ftp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-deploy-ftp

Laravel FTP Deploy (amirvahedix/laravel-deploy-ftp)

Latest Stable Version License

A lightweight Laravel package to deploy files modified in Git (plus compiled assets like public/build) to any shared hosting or server via FTP/FTPS.

Features

Installation

Install the package via Composer in any Laravel project:

(The package uses Laravel Service Discovery and will automatically register the deploy:ftp and deploy:ftp-edit Artisan commands).

Configuration

Publish the package configuration file to config/deploy-ftp.php:

Environment Variables (.env)

Add your FTP server details to your .env file:

Usage

1. FTP Deployment (deploy:ftp)

Run the deployment command:

Command Options

Option Description
--all Deploy all tracked files (useful for initial deployment)
--status Deploy modified and untracked files based on git status
--from=COMMIT Starting Git commit or tag reference to diff from
--to=COMMIT Ending Git commit (defaults to HEAD)
--dry-run Print list of files that would be uploaded without connecting/uploading
--host=HOST Override FTP host
--user=USER Override FTP username
--password=PASS Override FTP password
--port=PORT Override FTP port (default: 21)
--ssl Connect using SSL/TLS (FTPS)
--root=PATH FTP remote root folder (e.g. /public_html)
--tag=TAG Git tag to track the last deployed commit (default: deployed-latest)
--push Push the deployment Git tag to remote Git origin
--exclude=PATH Comma-separated list of additional files/directories to exclude

Examples

Simulate a full deployment (Dry Run):

Deploy uncommitted / modified files from git status:

Deploy diff between HEAD~2 and HEAD:

2. Remote File Editor (deploy:ftp-edit)

Edit a file directly on the remote FTP host using vim (or any configured editor) and automatically re-upload it when saved:

If the file path argument is omitted, the command will interactively prompt you to enter the remote file path.

Command Options

Option Description
file Relative path of the remote file to edit
--editor=EDITOR The text editor binary to use (default: vim)
--host=HOST Override FTP host
--user=USER Override FTP username
--password=PASS Override FTP password
--port=PORT Override FTP port (default: 21)
--ssl Connect using SSL/TLS (FTPS)
--root=PATH FTP remote root folder (e.g. /public_html)

Examples

Edit a remote file using Vim:

Edit a remote file using Nano or another editor:

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-deploy-ftp with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/console Version ^10.0|^11.0|^12.0|^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package amirvahedix/laravel-deploy-ftp contains the following files

Loading the files please wait ...