Skip to content

Installation ​

Install via Composer ​

bash
composer require hosni/laravel-edge-trust

Package discovery registers the service provider automatically for Laravel applications.

DetailValue
Composer packagehosni/laravel-edge-trust
NamespaceHosni\EdgeTrust
PHP8.2+
Laravel10+ / 11 / 12 / 13

Most installs never publish config. Enable providers and common toggles in .env:

ini
EDGE_TRUST_MODE=hybrid
EDGE_TRUST_PROVIDERS=cloudflare

See Configuration for the full env list.

Optional: publish configuration ​

bash
php artisan vendor:publish --tag=edge-trust-config

Use 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-proxies

Most 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:providers

Check status (mode, cache, last sync metadata when available):

bash
php artisan edge-trust:status

Next steps ​

Released under the MIT License.