1. Go to this page and download the library: Download netson/l4shell 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/ */
$command = L4shell::setCommand('find ./ -maxdepth 1 -name %s')->setArguments(array("*.txt"))->setAllowedCharacters(array("*"));
// returned with allowed characters: find ./ -maxdepth 1 -name '*.txt'
// returned without allowed characters: find ./ -maxdepth 1 -name '\*.txt'
public function testSomething ()
{
L4shell::shouldReceive('get')->once();
L4shell::shouldReceive('execute')->once()->andReturn("your message");
}
public function tearDown ()
{
\Mockery::close();
}
$ php composer.phar
$ php artisan config:publish netson/l4shell
app/config/packages/netson/l4shell/config.php
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.