Download the PHP package grazulex/laravel-configrypt without Composer

On this page you can find all versions of the php package grazulex/laravel-configrypt. 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-configrypt

Laravel Configrypt

Encrypt sensitive values in your Laravel .env file and decrypt them using helper functions that work around Laravel's environment caching limitations.

Latest Version Total Downloads License PHP Version Laravel Version Tests Code Style

๐Ÿ” Overview

๐Ÿ” Laravel Configrypt lets you encrypt secrets directly in your .env file using a secure key, and decrypt them using reliable helper functions that work around Laravel's environment caching limitations.

It protects values like API tokens, database credentials, or secret keys โ€” especially when sharing .env files across environments or storing encrypted configs in source control or CI/CD.

โœจ Features

๐Ÿ’ก Example

In your .env:

In your Laravel code:

โš™๏ธ Configuration

Publish the config:

Result in config/configrypt.php:

๐Ÿš€ Quick Start

1. Install the package

2. Publish configuration (optional)

3. Encrypt your secrets

Output:

4. Add to your .env file

5. Use in your application

โš ๏ธ Important: Laravel's env() function cannot be automatically decrypted due to early caching.

โš ๏ธ Important: Laravel env() Cache Limitation

Laravel caches environment variables very early in the boot process, before service providers load. This means the standard env() function cannot be automatically decrypted.

๐Ÿ”ง Solution: Use Helper Functions

๐Ÿš€ Quick Migration

Find and replace in your codebase:

๐Ÿ”ง Advanced Usage

Using the Facades

Helper Functions

Dependency Injection

๐Ÿงช Practical Examples

Database Configuration

API Keys Management

Multi-Environment Setup

More examples are available in the Examples Wiki.

๐Ÿ”‘ Changing Keys

You can define a custom CONFIGRYPT_KEY in .env to use a dedicated encryption key different from APP_KEY.

๐Ÿ’ก Remember: only encrypted values with the correct key can be decrypted. Keep your key safe!

๐Ÿ›ก๏ธ Security Considerations

๐Ÿ“š Documentation

Comprehensive documentation and examples are available in the GitHub Wiki:

๐Ÿ“„ License

MIT License โ€” see LICENSE.md


Made with ๐Ÿ” for Laravel developers who care about secrets.

All versions of laravel-configrypt with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/support Version ^12.19
illuminate/console Version ^12.19
illuminate/encryption Version ^12.19
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 grazulex/laravel-configrypt contains the following files

Loading the files please wait ...