Download the PHP package marmelab/ng-admin-generator-bundle without Composer
On this page you can find all versions of the php package marmelab/ng-admin-generator-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download marmelab/ng-admin-generator-bundle
More information about marmelab/ng-admin-generator-bundle
Files in marmelab/ng-admin-generator-bundle
Package ng-admin-generator-bundle
Short Description Bundle to generate easily a ng-admin configuration file based on your LemonRestBundle based API
License MIT
Homepage https://github.com/marmelab/NgAdminGeneratorBundle
Informations about the package ng-admin-generator-bundle
Archived Repository This code is no longer maintained. Feel free to fork it, but use it at your own risks. |
NgAdminGeneratorBundle
You're a fan of StanLemonRestBundle because it makes REST APIs based on Doctrine entities a piece of cake? You starred ng-admin because you love the idea of a JavaScript-powered administration panel consuming a REST API? Then, you will love NgAdminGeneratorBundle, the Symfony2 bundle that bootstraps ng-admin based on a Doctrine-powered REST API!
Installation
Setting up bundle
Using this bundle in your own project is pretty straightforward, thanks to composer:
composer require marmelab/ng-admin-generator-bundle
Then, register it to your AppKernel.php
file. The NgAdminGeneratorBundle should only be used in development:
No more configuration, you are now ready to go!
ng-admin template sample
Here is a Twig template to render your favorite administration panel:
If you got a blank page, ensure you have set correctly the ng-app
and ui-view
attributes.
Generating your ng-admin configuration
This bundle just adds the ng-admin:configuration:generate
command to your application. By default, it outputs a JavaScript configuration based on the REST API defined by StanLemonRestBundle into STDOUT. You are free to redirect STDOUT into the file of your choice:
Tip: Thanks to the Symfony2 Console component, you can truncate parts of the command name and call the ng-admin:c:g
command!
Configuration sample
Here is a sample of an auto-generated configuration, based on the stanlemon/rest-demo-app demo application. This application sets up the same entities as the official ng-admin demo app, i.e. Posts, Comments, and Tags. The generator simply uses entity mapping to better know which fields to use.
Contributing
Your feedback about the usage of this bundle is valuable: don't hesitate to open GitHub Issues for any problem or question you may have.
All contributions are welcome. New applications or options should be tested with the phpunit
command.
License
NgAdminGeneratorBundle is licensed under the marmelab.
All versions of ng-admin-generator-bundle with dependencies
doctrine/doctrine-bundle Version ~1.2
php Version >=5.4
symfony/browser-kit Version 2.*
symfony/framework-bundle Version 2.*
symfony/twig-bundle Version 2.*
symfony/finder Version 2.*
symfony/yaml Version 2.*
stanlemon/rest-bundle Version 0.8.*