PHP code example of amirvahedix / laravel-deploy-ftp

1. Go to this page and download the library: Download amirvahedix/laravel-deploy-ftp library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

amirvahedix / laravel-deploy-ftp example snippets

bash
php artisan vendor:publish --tag=deploy-ftp-config
bash
php artisan deploy:ftp
bash
php artisan deploy:ftp --status
bash
php artisan deploy:ftp --from=HEAD~2 --to=HEAD
bash
php artisan deploy:ftp-edit path/to/remote-file.php
bash
php artisan deploy:ftp-edit .env
bash
php artisan deploy:ftp-edit config/app.php --editor=nano