Download the PHP package doobert/aws-secrets-manager without Composer

On this page you can find all versions of the php package doobert/aws-secrets-manager. 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 aws-secrets-manager

AWS Secrets Manager for Laravel

Latest Version on Packagist Total Downloads

Seamless integration with AWS Secrets Manager for Laravel. Caching, atomic locking, flexible config mapping, and easy setup.


🚀 Installation

Install via Composer:

If not auto-discovered, add the service provider to config/app.php:

Publish the configuration file:


⚙️ Configuration

Edit config/aws-secrets-manager.php or set these in your .env:

Key Description Default
enabled Enable/disable the package true
check_latency Log cache/AWS latency false
region AWS region for Secrets Manager us-west-2
cache_ttl Cache lifetime (seconds) 3600
cache_store Laravel cache store to use (e.g., redis) redis
name AWS secret name (empty)
log_channel Log channel for package logs awssecrets
load_in_console Load secrets when running artisan/console false
keys_raw Map secret keys to config (see below) false

Example .env:


🛠 Usage

Inject or resolve the service:

Mapping Secrets to Config

Mapping Secrets to Config

Set AWS_SECRETS_KEYS_RAW or aws-secrets-manager.keys_raw to map secret keys to Laravel config values:

Format: SECRET_KEY:config.path, comma-separated for multiple pairs. This will automatically set config values at runtime. Load in Console

Set AWS_SECRETS_LOAD_IN_CONSOLE=true to load secrets when running artisan/console commands (disabled by default for performance).


📋 Logging

All logs are sent to the channel defined in log_channel (default: awssecrets). If not set, logs go to the default Laravel log channel.


Refreshing the secrets in Cache

🛡 Artisan Command: Refresh Secrets

You can manually refresh and cache your AWS secret after rotation using the included artisan command:

This will force a fresh fetch from AWS Secrets Manager and update the cache. Useful after rotating secrets in AWS.

Options:

Example output:

If the secret cannot be fetched, you’ll see an error message with troubleshooting tips.

✅ Testing

From the package directory:


📦 Requirements


📄 License

MIT


All versions of aws-secrets-manager with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
illuminate/support Version ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0
aws/aws-sdk-php Version ^3.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 doobert/aws-secrets-manager contains the following files

Loading the files please wait ...