Download the PHP package sentinel-service/laravel-remote-config without Composer

On this page you can find all versions of the php package sentinel-service/laravel-remote-config. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-remote-config

Laravel Remote Config

Laravel 远程配置管理包。此扩展包允许你从中央配置服务器存储和获取配置值,支持加密、缓存,并与 Laravel 的配置系统无缝集成。

功能特性

环境要求

安装

通过 composer 安装扩展包:

配置

发布配置文件:

这将在 config 目录下创建 remote.php 配置文件。在 .env 文件中添加以下环境变量:

配置选项

使用方法

基本用法

安装后,你可以直接使用 Laravel 的 config() 辅助函数。扩展包会自动尝试从远程服务器获取配置值:

路径映射

你可以在配置文件中定义路径映射,将远程配置值映射到指定的配置路径:

这样,当访问 config('aws.key') 时,扩展包会:

  1. 从远程服务器获取配置
  2. 根据映射关系更新配置值
  3. 缓存结果

刷新配置

你可以使用提供的 Artisan 命令刷新远程配置:

缓存机制

扩展包使用文件缓存系统存储远程配置:

错误处理

扩展包会优雅地处理各种错误情况:

安全性

在存储敏感信息(如 API 密钥)时,请确保:

  1. 使用 HTTPS 协议访问远程配置 API
  2. 妥善保管 REMOTE_CONFIG_SECRET
  3. 使用环境变量存储敏感信息
  4. 定期更换密钥和令牌

架构说明

扩展包采用模块化设计:

这种设计确保了:


All versions of laravel-remote-config with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0
guzzlehttp/guzzle Version ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sentinel-service/laravel-remote-config contains the following files

Loading the files please wait ....