1. Go to this page and download the library: Download eduavila/slim-commander 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/ */
eduavila / slim-commander example snippets
session_start();
use DI\ContainerBuilder;
use Slim\App;
use SlimFacades\Facade;
// Instantiate container
// Container PHP-DI
$containerBuilder = new ContainerBuilder();
// Definitions PHP-DI
$containerDefinitions = tes
use DI\ContainerBuilder;
// Instancia container
// Container PHP-DI
$containerBuilder = new ContainerBuilder();
// Configura PHP-DI
$containerDefinitions = ções de comandos cli.
class HelloWorld
{
private $container;
public function __construct($container)
{
$this->container = $container;
}
public function greet($args)
{
echo "Hello " . $args['name'];
}
}
$container['HelloWorld'] = function ($container) {
return new \App\Commands\HelloWorld($container);
};
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.