PHP code example of danc0 / clyde
1. Go to this page and download the library: Download danc0/clyde 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/ */
danc0 / clyde example snippets
if (php_sapi_name() !== 'cli') {
exit;
}
Application::create('devtool')
->about('A small developer tool to help do some cool things')
->version('1.0.0')
->author('dvnc0')
->website('https://github.com/dvnc0')
->command(
Command::create('encode <string>')
->about('Encode the passed string with base64')
->action(function($args) {
print(base64_encode($args['string']));
exit(0);
})
->save()
)
->run();