1. Go to this page and download the library: Download dlepera88-php/rauterex 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/ */
dlepera88-php / rauterex example snippets
use RautereX\RautereX;
class AlgumaClasse {
}
$rauter_x = new RautereX();
$rauter_x->get(
'/index',
[AlgumaClasse::class, 'index']
);
$rauter_x->executarRota(
'/index',
null,
'get'
);
use League\Container\Container;
use League\Container\ReflectionContainer;
use RautereX\RautereX;
class AlgumaClasse {
/** @var OutraClasse */
private $alguma_coisa;
public function __construct(OutraClasse $outra_classe) {
$this->alguma_coisa = $outra_classe;
}
}
class OutraClasse {
}
$container = new Container;
$container->delegate(new ReflectionContainer);
$rauter_x = new RautereX($container);
$rauter_x->get(
'/index',
[AlgumaClasse::class, 'index']
);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.