[READ-ONLY] Simpler CRUD for Symfony2 applications.
PHP HTML
Latest commit f069330 May 18, 2017 @pamil pamil Update @pamil's email
Permalink
Failed to load latest commit information.
Command [Resource] Clean up bundle Oct 14, 2016
Controller Prepare the Sylius v1.0.0-beta.2 release Apr 11, 2017
DependencyInjection Update @pamil's email May 18, 2017
Doctrine Deprecated 'property' form option May 18, 2017
Event [Cart] Make possibility to change response after add to cart action Jan 31, 2017
EventListener Merge pull request #5810 from khoa-le/Issue#955 Mar 10, 2017
ExpressionLanguage [Resource] Custom expression language function to handle null arguments Mar 2, 2017
Form Update @pamil's email May 18, 2017
Grid [Resource][Grid] Fixes after PR review Nov 22, 2016
Resources [Security] Changed methods responsible for token generation Apr 5, 2017
Routing [Resource] Improve generated routing Feb 11, 2017
Storage Update @pamil's email May 18, 2017
Tests Update @pamil's email May 18, 2017
Validator Update @pamil's email May 18, 2017
spec Update @pamil's email May 18, 2017
test Update @pamil's email May 18, 2017
.gitignore [ResourceBundle] Add configuration test Feb 18, 2016
AbstractResourceBundle.php add a way to make object manager name consistent Jan 9, 2017
README.md [Bundles] READMEs - part 5 Oct 14, 2016
ResourceBundleInterface.php [Resource] Remove static from ResourceBundleInterface::getSupportedDr… Apr 8, 2016
SyliusResourceBundle.php Remove Addressing's dependency on ResourceBundle Mar 9, 2017
composer.json friendsofsymfony/rest-bundle Jan 25, 2017
phpspec.yml.dist Upgrade phpspec to 3.0 Jul 25, 2016
phpunit.xml.dist [Resource] Run both functional tests and integrational tests at the s… Apr 18, 2016

README.md

SyliusResourceBundle Build status...

Easy CRUD and persistence for Symfony2 apps.

During our work on Sylius, we noticed a lot of duplicated code across all controllers. We started looking for good solution of the problem. We're not big fans of administration generators (they're cool, but not for our usecase!) - we wanted something simpler and more flexible.

Another idea was to not limit ourselves to one persistence backend. Initial implementation included custom manager classes, which was quite of overhead, so we decided to simply stick with Doctrine Common Persistence interfaces. If you are using Doctrine ORM or any of the ODM's, you're already familiar with those concepts. Resource bundle relies mainly on ObjectManager and ObjectRepository interfaces.

The last annoying problem this bundle is trying to solve, is having separate "backend" and "frontend" controllers, or any other duplication for displaying the same resource, with different presentation (view). We also wanted an easy way to filter some resources from list, sort them or display by id, slug or any other criteria - without having to defining another super simple action for that purpose.

If these are issues you're struggling with, this bundle may be helpful!

Please note that this bundle is not an admin generator. It won't create forms, filters and grids for you. It only provides format agnostic controllers as a foundation to build on, with some basic sorting and filter mechanisms.

Sylius

Sylius

Sylius is an Open Source eCommerce solution built from decoupled components with powerful API and the highest quality code. Read more on sylius.org.

Documentation

Documentation is available on docs.sylius.org.

Contributing

This page contains all the information about contributing to Sylius.

Follow Sylius' Development

If you want to keep up with the updates and latest features, follow us on the following channels:

Bug tracking

Sylius uses GitHub issues. If you have found bug, please create an issue.

MIT License

License can be found here.

Authors

The bundle was originally created by Paweł Jędrzejewski. See the list of contributors.