PHP code example of logifire / ftps-deploy

1. Go to this page and download the library: Download logifire/ftps-deploy 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/ */

    

logifire / ftps-deploy example snippets



return [
    // FTP connection settings
    'host' => 'example.com',
    'port' => 21,
    'username' => 'your-username',
    'password' => 'your-password',
    
    // Files/folders to ignore (supports wildcards)
    'ignore_patterns' => [
        '.git',
        '.gitignore',
        'node_modules',
        'vendor',
        '*.log',
        'tests'
    ]
];

'hash_file' => '/path/to/your-hashes.json',
bash
vendor/bin/deploy.php init
bash
vendor/bin/deploy.php --config=path/to/your/deploy-config.php
bash
vendor/bin/deploy.php
bash
vendor/bin/deploy.php --only-hashes
bash
vendor/bin/deploy.php --config=path/to/deploy-config.php
bash
vendor/bin/deploy.php --help
json
"scripts": {
    "deploy": "php vendor/bin/deploy.php",
    "deploy:staging": "php vendor/bin/deploy.php --config=deploy-config.staging.php"
}