PHP code example of jay-tank / idorguard
1. Go to this page and download the library: Download jay-tank/idorguard 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/ */
jay-tank / idorguard example snippets
class InvoiceController extends Controller
{
public function show(Invoice $invoice)
{
return view('invoices.show', ['invoice' => $invoice]);
}
}
use IdorGuard\Scanner;
$findings = Scanner::scanSource($phpSourceCode, "InvoiceController.php");
$findings = Scanner::scanPath("./app/Http/Controllers");