Recommend this page to a friend! |
Classes of Roni | Easy PHP Config Bundle | README.md | Download |
|
DownloadEasy Config BundleA Symfony Bundle for easy configuration management.Features Include
Install
1. Download and Enable EasyConfigBundle :_Download through composer :_Open a command console, enter project directory and execute the following command to download the latest stable version of this bundle:
_Enable Bundle (No need when Flex is available):_The bundle should be automatically enabled by Symfony Flex. If you don't use Flex, you will need to enable the bundle manually by adding the following line in the config/bundles.php file of your project:
2. Register an Interface to Kernel fileOpen application Kernel.php File and add below code inside the build method of this file
_Note: Do not forget to include the below line above in your src/Kernel.php_
3. Create Config entity class:By default 4. Configure yaml file:Create a file in the following directory
5. Update database schema:It?s time to set up the database schema, open your command console, go to your project root path and execute the following command.
6. Create form group and type:Create a form group class and form type with your necessary fields. Please follow the instructions to create the form group and type. 7. Register the bundle?s routes:Now it's time to access the form you have just created, for that you have to include bundle's routes to your application by the following way.
_Note: You may change the prefix as your wish_ Following routes are available in this bundle:
* Index route 8. Overriding default EasyConfigBundle templates (optional)Template overriding is not important to use EasyConfigBundle bundle but if you want to keep UI as similar as your application you can override the template, to do so follow the instructions Congratulations ! Your application is ready to store configurations, just browse the routes. LicenseThe Easy Config Bundle is licensed under the MIT license. See the LICENSE file for more details. |