PHP code example of bravedave / green

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

    

bravedave / green example snippets




use dvc\service;

class updater extends service {
    protected function _upgrade() {
        config::route_register( 'beds_list', 'green\\beds_list\\controller');
        config::route_register( 'baths', 'green\\baths\\controller');

        echo( sprintf('%s : %s%s', 'updated..', __METHOD__, PHP_EOL));

    }

    static function run() {
        $app = new self( application::startDir());
        $app->_upgrade();

    }

}