KNP Labs RAD Components
Rapid Application development with Symfony
Rapid Application development with Symfony
Bring enhanced development experience to your Symfony projects and get rid of these tiresome tasks you feel doing over and over. Spend your time elsewhere!
Straight to the point usage.
No hidden complexity. Fast results.
Minimal configuration.
Components are plug & play.
Does not pollute your code. Breaks nothing.
Use it, or not :)
Each component is simple and stupid.
It does one thing and it does it well.
It is so green.
Follows the SOLID principles.
PSR compliant.
Resolve resources from the routing
Resource Resolver is a way to resolve request attributes and get directly the value. It is very similar to Param Converters, but however far more flexible and powerful.
Perform security check at routing level instead of in the controller.
Through simple configuration in the routing, this component allows to grant access according resolved resources. And combined with the rad-resource-resolver component, it also allows to set conditions on request attributes.
Doctrine to Symfony events redispatcher
It is able to access to your doctrine events from Symfony DependencyInjection component easily.
Forget about those many common services declarations
Don't bother anymore registrate your repositories, form extensions, security voters or twig extensions as services... Just small configuration, stored files under specific sub-namespace, and all repositories, extensions and voters are auto-registred.
Allows you to use nelmio/alice library when loading your fixtures.
A simple way to handle password encryption and salt generation.
Before your entity is inserted or updated into your database, according traits you choose to use, the salt, plain password or password will be automaticly generated. And all of this is done through three interfaces and three listeners.
Don't bother with render functions anymore.
Following the Symfony conventions, the View Renderer component will try to render the appropriate twig template, if no Response object was returned from the Controller. You can still of course return a response when you want.
A lightweight domain event pattern implementation for Doctrine2
The raise method allows you to trigger any event in your entity which will be transformed to a Knp\Rad\DomainEvent\Event object and dispatched once the entity has been flushed.
This component will simply auto-complete needed route parameters with existing ones.
Just continue to use former url generation, nothing changes concerning the implementation. The only change is you don't repeat current route parameters anymore.
Works also with url and path Twig functions or everywhere else you use the Symfony Router.