Developed with love by KnpLabs Hire us for your project!
86

SyliusResourceBundle

by Sylius

[READ-ONLY] Simpler CRUD for Symfony2 applications.

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 admin generator. It won't create forms, filters and grids for you. It only provides format agnostic controllers as foundation to build on, with some basic sorting and filter mechanisms.

Sylius

Modern ecommerce for Symfony2. Visit Sylius.org.

phpspec examples

$ composer install
$ bin/phpspec run -f pretty

Documentation

Documentation is available on docs.sylius.org.

Contributing

All informations about contributing to Sylius can be found on this page.

Mailing lists

Users

Questions? Feel free to ask on users mailing list.

Developers

To contribute and develop this bundle, use the developers mailing list.

Sylius twitter account

If you want to keep up with updates, follow the official Sylius account on twitter.

Bug tracking

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

Versioning

Releases will be numbered with the format major.minor.patch.

And constructed with the following guidelines.

  • Breaking backwards compatibility bumps the major.
  • New additions without breaking backwards compatibility bumps the minor.
  • Bug fixes and misc changes bump the patch.

For more information on SemVer, please visit semver.org website.

This versioning method is same for all Sylius bundles and applications.

MIT License

License can be found here.

Authors

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

Copyright (c) 2011-2012 Paweł Jędrzejewski

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
sylius_resource:
resources:

# Prototype
name:
driver: ~ # Required
templates: ~
classes:
model: ~ # Required
controller: Sylius\Bundle\ResourceBundle\Controller\ResourceController
repository: ~
interface: ~
  • Merge pull request #2372 from antonioperic/addUndeleterProduct
    By pjedrzejewski, 1 year ago
  • fix for icons on action buttons
    By gperdomor, 1 year ago
  • Create routes with GET parameters.
    By kayue, 1 year ago
  • Merge pull request #2703 from vendora/fix/resource-config-classes
    By aRn0D, 1 year ago
  • [ResourceBundle] First extension will not be lost if sylius.config.classes is not defined yet.
    By aramalipoor, 1 year ago
  • Remove not-so-commonly-known abbr from exception
    By WouterJ, 1 year ago
  • Fix triggered events on forms collections
    By gperdomor, 1 year ago
  • Typo in service name.
    By isometriks, 1 year ago
  • Added option to undelete resource (product) and separete listing of products and deleted products
    By antonioperic, 1 year ago
  • Fix translation
    By Dudu, 1 year ago
  • Merge pull request #2645 from vendora/fix/resource-bundle-classes-parameter
    By pjedrzejewski, 1 year ago
  • [ResourceBundle] Fix conflict of resource names in sylius.config.classes
    By aramalipoor, 1 year ago
  • Fix Mongo and PHPCR document managers service names
    By Strontium-90, 1 year ago
  • Fix CollectionType and AttributeChoices form type
    By aramalipoor, 1 year ago
  • Update Sylius resource bundle composer.json
    By pjedrzejewski, 1 year ago
  • Fix redirect on API calls to revert, move and updateState actions.
    By aramalipoor, 1 year ago
  • Merge pull request #2519 from pjedrzejewski/decoupling-translations
    By pjedrzejewski, 1 year ago
  • Merge pull request #2593 from stloyd/bugfix/security_settings
    By pjedrzejewski, 1 year ago
  • Fix MongoDB repository specs
    By pjedrzejewski, 1 year ago
  • Fix the issue with not generating slugs
    By pjedrzejewski, 1 year ago
  • Fix specs
    By pjedrzejewski, 1 year ago
  • Update MongoDB driver
    By pjedrzejewski, 1 year ago
  • Translations work for normal Sylius resources
    By pjedrzejewski, 1 year ago
  • Rework translations handling
    By pjedrzejewski, 1 year ago
  • Repository consistent configuration
    By Amenophis, 1 year ago
  • Lock settings management to specific roles
    By stloyd, 1 year ago
  • Allow underline in group names for API `groups` header
    By aramalipoor, 1 year ago
  • [Translation][ORM][Repository] reduce numbers of executed queries.
    By Aitboudad, 1 year ago
  • Set default driver in bundle configuration
    By , 1 year ago
  • Merge pull request #2481 from pjedrzejewski/rbac
    By pjedrzejewski, 1 year ago