PHP code example of jameslevi / atmos

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

    

jameslevi / atmos example snippets


/**
 * Method to be executed in the command line.
 *
 * @param  array $arguments
 * @return void
 */
protected function main(array $arguments)
{
    Console::log("Hello World!");  
}

/**
 * This method will generate new file.
 *
 * @param  array $arguments
 * @return void
 */
protected function generate(array $arguments)
{
    Console::success("File is generated.");  
}

/**
 * This method will generate new file.
 *
 * @param  array $arguments
 * @return void
 */
protected function generate(array $arguments)
{
    Console::success($arguments[0] . " file is generated.");  
}

php atmos test:generate newfile.php

protected $alias = "alternative";

Console::log("Hello World!");

Console::success("Congratulations! you made it!");

Console::error("Something went wrong!");

Console::info("You scored 30 points!");

Console::warn("I told you not to go here!");

Console::call(array(
    'composer -h',
    'php atmos -h'
));

php atmos --make Test

php atmos test

php atmos test:generate

php atmos --alternative:generate

php atmos --serve 8080