Installation
Install via Composer
bash
composer require hosni/laravel-edge-trustPackage discovery registers the service provider automatically for Laravel applications.
| Detail | Value |
|---|---|
| Composer package | hosni/laravel-edge-trust |
| Namespace | Hosni\EdgeTrust |
| PHP | 8.2+ |
| Laravel | 10+ / 11 / 12 / 13 |
Configure via .env (recommended)
Most installs never publish config. Enable providers and common toggles in .env:
ini
EDGE_TRUST_MODE=hybrid
EDGE_TRUST_PROVIDERS=cloudflareSee Configuration for the full env list.
Optional: publish configuration
bash
php artisan vendor:publish --tag=edge-trust-configUse a published config/edge-trust.php only when you need options that are not env-driven (custom provider classes, per-provider validation floors, header bitfields, …).
Optional: publish archives
If you want local copies of bundled proxy archives outside the vendor directory (useful for inspection or custom packaging), publish the resources tag when available:
bash
php artisan vendor:publish --tag=edge-trust-proxiesMost applications can rely on the archives shipped inside the package and refresh them with Artisan instead.
Verify installation
List registered providers:
bash
php artisan edge-trust:providersCheck status (mode, cache, last sync metadata when available):
bash
php artisan edge-trust:status