Download the PHP package burakdalyanda/cipher-weave without Composer
On this page you can find all versions of the php package burakdalyanda/cipher-weave. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download burakdalyanda/cipher-weave
More information about burakdalyanda/cipher-weave
Files in burakdalyanda/cipher-weave
Package cipher-weave
Short Description A seamless security layer for Laravel applications that automatically decrypts incoming requests and encrypts outgoing responses to ensure data integrity and confidentiality.
License MIT
Homepage https://github.com/burakdalyanda/cipher-weave
Informations about the package cipher-weave
CipherWeave
CipherWeave is a Laravel middleware package designed to encrypt outgoing responses and decrypt incoming requests, ensuring your data remains secure throughout its journey.
Features
- Seamless Integration: Easily integrate CipherWeave into your Laravel project.
- Modern PHP & Laravel: Built for PHP 8.2+ and Laravel 10, 11, and 12.
- Encryption & Decryption: Automatically encrypt responses and decrypt requests.
- Configurable Security: Customize encryption settings to fit your security needs.
- Artisan Command: Easily generate and set your encryption key.
- Facade Support: Simple access to encryption methods via
CipherWeaveFacade.
Requirements
- PHP 8.2 or higher
- Laravel 10.x, 11.x or 12.x
Installation
To install CipherWeave, use Composer:
Configuration
Publish the configuration file to customize encryption settings:
This will create a config/cipher.php file.
Generate Encryption Key
You must generate an encryption key for the package to work:
This command will generate a key and set it in your .env file as CIPHER_KEY.
Usage
Register Middleware
Laravel 11 & 12
Add the middleware in bootstrap/app.php:
Laravel 10
Add the middleware to your app/Http/Kernel.php file:
Protect Routes
Apply the middleware to your routes in routes/web.php or routes/api.php:
Using a Custom Encryption Key for Specific Routes
You can override the default encryption key for specific routes:
Facade Usage
You can use the CipherWeave facade for manual encryption and decryption:
Manual Usage (DI)
You can also inject CipherWeaveInterface:
Contributing
Contributions are welcome! Please see the CONTRIBUTING.md file for more details.
License
The MIT License (MIT). Please see the License File for more information.
All versions of cipher-weave with dependencies
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/contracts Version ^10.0|^11.0|^12.0
illuminate/encryption Version ^10.0|^11.0|^12.0