for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Example;
use Zapheus\Routing\Router;
/**
* Route Collection
*
* @package App
* @author Rougin Gutib <[email protected]>
*/
class RouteCollection extends Router
{
* Namespace applied to all class-based routes.
* @var string
protected $namespace = 'App\Example';
* Returns an array of route instances.
* @return \Zapheus\Routing\Route[]
public function routes()
$this->get('/test', 'TestController@greet');
$this->get('/scream', 'GreetController@scream');
$this->get('/', 'GreetController@greet');
$this->get('/{name}', 'GreetController@greet');
return $this->routes;
}