PHP code example of perfocard / gate
1. Go to this page and download the library: Download perfocard/gate 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/ */
perfocard / gate example snippets
return [
'enabled' => env('GATE_ENABLED', false),
// You can specify a single URL or an array of URLs
'urls' => env('GATE_URLS'), // e.g., http://localhost:8080 or socks5://127.0.0.1:9050
];
use Illuminate\Support\Facades\Http;
$response = Http::get('https://example.com');
bash
php artisan vendor:publish --provider="Perfocard\Gate\GateServiceProvider" --tag=config