PHP code example of itsahappymedium / wp-deployer

1. Go to this page and download the library: Download itsahappymedium/wp-deployer 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/ */

    

itsahappymedium / wp-deployer example snippets



P_Deployer();


P_Deployer();

use function Deployer\{ add, set };

add('extra_files', array(
  'scripts.js',
  'lib/bootstrap/bootstrap.css'
));

set('ssh_multiplexing', false);

.htaccess
robots.txt
wp-config.php