Download the PHP package codyas/toolbox-bundle without Composer
On this page you can find all versions of the php package codyas/toolbox-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codyas/toolbox-bundle
More information about codyas/toolbox-bundle
Files in codyas/toolbox-bundle
Package toolbox-bundle
Short Description A Codyas set of tools for Symfony dev
License MIT
Informations about the package toolbox-bundle
Codyas Toolbox
Codyas Toolbox is a very opinionated set of internal tools for developing Symfony apps.
Features
- CRUD operations on Doctrine entities (create, edit, list, delete).
- Admin template optimized for Symfony.
- Supports Symfony 4.0 or higher.
Requirements
- PHP >= 7
- Symfony >= 4.0
- NPM
- Yarn
Installation
First your need to allow extra contrib to configure the bundle via Flex, run the following in your project root:
Then install the bundle:
Configuration
Most of the project config should be done by Flex. If due to any reason the configuration isn't automatically done, configure the bundle manually:
Register the bundle:
Register the bundle's routes:
Templating
This bundle provides a standard templating system for Twig. The templates selected to benefits from the pre-designed view,
must extends the base.html.twig
file of the selected theme. Currently one theme is supported, and the themes are located under the
Resources/views/
folder of the bundle.
Assets configuration
This bundle provides a selection of assets required by the template(s) and by the CRUD features and some others. This set of tools is distributed in a NPM package you must install in your project. Please consider that Webpack Encore is required in order to compile this assets for both dev and production environments.
In your project root execute (NPM and Yarn are required):
This will install the assets and all other UI dependencies required by the template. Once the installation
is completed, create an entry point file in the project's assets folder, ex: admin_app.js
and include the desired features.
Next register the entry point in the webpack.config.js
file. The entry name must be codyas_ep
as the templating config expects this name.
If some customization of the CRUD behaviour is needed, append the following code to the same file where custom_folder stands for a folder inside assets/js/ that contains JS files. This files will be included and executed in the CRUD environment.
All versions of toolbox-bundle with dependencies
knplabs/knp-paginator-bundle Version ^5.0 || ^6.0
stof/doctrine-extensions-bundle Version ^1.0
symfony/flex Version ^1.0 || ^2.0
symfony/form Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/framework-bundle Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/http-client Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/security-bundle Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/translation Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/twig-bundle Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/validator Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/webpack-encore-bundle Version ^1.0 || ^2.0