iridiumintel / rapidenv-laravel
Laravel wrapper for RapidEnv – replace env() with secure distributed secrets
v0.0.1
2025-09-11 21:14 UTC
Requires
- php: >=8.1
- illuminate/support: ^10.0|^11.0
- iridiumintel/rapidenv-php: ^0.0.1
This package is not auto-updated.
Last update: 2025-09-12 18:59:03 UTC
README
RapidEnv Laravel is the official Laravel wrapper for RapidEnv –
a secure, distributed, next-gen replacement for .env
files.
🚀 Installation
composer require iridiumintel/rapidenv-laravel
php artisan vendor:publish --provider="RapidEnv\\Laravel\\RapidEnvServiceProvider" --tag=config
Laravel will auto-discover the service provider and facade.
⚡ Quick Start
Configure backend + enroll client
Make sure your app is registered on a RapidEnv backend and you have:clientId
publicKey
privateKey
- project + environment name
Use facade / helper
use RapidEnv\Facades\RapidEnv;
// Get secret
$password = RapidEnv::get('DB_PASSWORD');
// Or helper
$key = rapidenv('APP_KEY');
// Get all
$vars = RapidEnv::all();
- Config example (config/rapidenv.php)
return [
'endpoint' => env('RAPIDENV_ENDPOINT', 'https://api.rapidenv.io'),
'project' => env('RAPIDENV_PROJECT', 'myapp'),
'environment' => env('RAPIDENV_ENV', 'prod'),
'client_id' => env('RAPIDENV_CLIENT_ID'),
'public_key' => env('RAPIDENV_PUBLIC_KEY'),
'private_key' => env('RAPIDENV_PRIVATE_KEY'),
'roles' => ['web'],
'tags' => [],
];
🛡️ Security
- 🔐 Request signing with Ed25519
- 🛡️ Secrets only in memory (RAM cache, no disk)
- ⚡ Automatic rotation & sync with RapidEnv backend
- ✅ Compatible with Laravel 10 & 11
📜 License
MIT © 2025 IridiumIntel