定制 iridiumintel/rapidenv-laravel 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

iridiumintel/rapidenv-laravel

最新稳定版本:v0.0.1

Composer 安装命令:

composer require iridiumintel/rapidenv-laravel

包简介

Laravel wrapper for RapidEnv – replace env() with secure distributed secrets

README 文档

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

  1. Configure backend + enroll client
    Make sure your app is registered on a RapidEnv backend and you have:

    • clientId
    • publicKey
    • privateKey
    • project + environment name
  2. 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();
  1. 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

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-09-11