Download the PHP package hengebytes/setting-bundle without Composer
On this page you can find all versions of the php package hengebytes/setting-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hengebytes/setting-bundle
More information about hengebytes/setting-bundle
Files in hengebytes/setting-bundle
Package setting-bundle
Short Description Key-value storage for Symfony with encryption
License MIT
Informations about the package setting-bundle
Setting Bundle
About bundle
This bundle provides a simple way to manage settings in your Symfony application as a key-value. Sensitive data is encrypted. If you want to update the sensitive setting, you need to send the raw value again. The bundle provides an API to manage settings.
Installation
Step 1: Download the Bundle
Create the CRYPTO_KEY
generated as follows:
Add the generated key to your .env file:
Ensure that you have the variable in docker compose file:
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles:
Step 3: Config the Routing
Then, enable the routes by adding it to the route list
in the app/config/routing.yml
file of your project:
Step 4: Assets (Optional)
If you want to use admin UI you need to install assets:
Step 5: API
Include the following in your config/routes.yaml
file:
The API is not secured by default. You should secure it by adding a firewall in your config/packages/security.yaml
file:
The following requests are available:
List of settings can be retrieved by the following request:
GET /api/settings/list
POST /api/settings
POST requests should have the following body
DELETE /api/settings/list
DELETE requests should have the following body:
POST /api/settings/list
POST requests should have the following body:
All versions of setting-bundle with dependencies
doctrine/orm Version ^2.10|^3.0
doctrine/doctrine-bundle Version ^2.5
ext-sodium Version *
symfony/serializer-pack Version *