PHP code example of treffynnon / lazyshell
1. Go to this page and download the library: Download treffynnon/lazyshell 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/ */
treffynnon / lazyshell example snippets
Sh::date("'+%Y-%m-%d'"); // date '+%Y-%m-%d'
$listing = Sh::ls('-lkha'); // ls -lkha
Sh::date("'+%Y-%m-%d'", function ($line) {
return str_replace(date('Y'), '', $line);
})
Sh::date(new Parameter('+%Y-%m-%d')); // date '+%Y-%m-%d'