Meet Hadori. She’s beautiful, magnificient, and everything you’ve ever dreamed her to be. Go head, don’t be shy… click on her!. You can also browse the fully-functional demo, if you’re into that kind of thing.
| List View | |
|---|---|
![]() |
|
| Filters | Editing |
|
![]() |
| Detail View (show) | Exporting (yeah!) |
![]() |
![]() |
Why Switch?
- Export models as CSV
- Generated code that doesn’t strangle you
- Full test coverage
- Finally… a show action!
- Support for sortable models
- Gorgeous Redmine-style filtering
- Optional internationalization support
- Integration with
security.ymlsettings - Semantic markup, semantic CSS, and a beautiful theme!
- Damn good documentation
The primary purpose of Hadori is to provide you with meaningful, generated code. The purpose of an admin generator is to get you started with basic functionality that every administrator needs. However, your app’s requirements will eventually outgrow the scope of any configurable generator. When this happens, Hadori ensures you hit the ground running.
The generated code in Hadori isn’t good. It’s gorgeous. Beautiful. Hadori writes code better than your mom, guaranteed. Check it out.
Below is a comparison between symfony’s built-in admin generator and Hadori. This has been done using the out-of-the-box configuration for the sfGuardUser model. You can quickly see how much more lightweight hadori is, but more importantly you can see how much easier it is to understand the code itself.
| Hadori | Symfony’s Admin Gen | compare | |
|---|---|---|---|
| list header partial | 25 lines | 161 lines | compare |
| form rendering | 1 partial | 4 partials | compare |
| generated configuration class | none! | 293 files | compare |
| filesystem | 14 files | 29 files | compare |
| process form action | 15 lines | 42 lines | compare |
| batch action | 13 lines | 44 lines | compare |
| generated helper class | none! | 18 files | compare |
So what next?
- Check out the fully-functional demo
- Read the awesome documentation
- View a sample generator.yml from the demo
- Poke around the demo’s generated code
- Once you’re convinced Hadori is the plugin for you, follow the Installation and Setup instructions on github
- As always, don’t hesitate to contact me with any questions!
note: I have every intention of using as much of these concepts as possible in the Sonata AdminBundle for Symfony2. Stay tuned!







RSS Feed
Hi, do you make something like this using symfony2 ?