1. Go to this page and download the library: Download mydevnl/audit-routes 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/ */
mydevnl / audit-routes example snippets
use MyDev\AuditRoutes\AuditRoutes;
use MyDev\AuditRoutes\Auditors\PolicyAuditor;
use MyDev\AuditRoutes\Auditors\MiddlewareAuditor;
$result = AuditRoutes::for($router->getRoutes())
->setBenchmark(50)
->run([
PolicyAuditor::make()->setWeight(25),
MiddlewareAuditor::make(['auth'])->setWeight(20),
]);