PHP code example of totallydave / auto-deploy

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

    

totallydave / auto-deploy example snippets


define('APPLICATION_ROOT', realpath(dirname(__DIR__)));

cp vendor/totallydave/auto-deploy/config/module.config.php config/autoload/auto_deploy.php

return array(
    'modules' => array(
        // other modules
        ...

        'AutoDeploy'

        ...
    ),
    // other content
);


cp vendor/totallydave/auto-deploy/config/generic.config.php config/auto_deploy.php


// auto load composer packages - assuming this is the path to your vendor dir
if (file_exists('../vendor/autoload.php')) {
	loy\AutoDeploy(