2017 © Pedro Peláez
 

symfony-bundle cruds

Symfony CRUD bundle

image

php-rpc/cruds

Symfony CRUD bundle

  • Sunday, April 1, 2018
  • by scaytrase
  • Repository
  • 0 Watchers
  • 1 Stars
  • 205 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 14 Versions
  • 21 % Grown

The README.md

PHP Cruds bundle

License Build Status Code Coverage Scrutinizer Code Quality, (*1)

Latest Stable Version Latest Unstable Version Total Downloads, (*2)

Features

The main purpose of this library it to create easy configurable and extensible API for entities:, (*3)

  • Read controller with flexible entity querying and filtering
  • Create and update controllers with easy entity lifecycle control
  • Basic access checks

Installation

  1. Require package from packagist:
composer require php-rpc/cruds:~1.0
  1. Include bundle into your application kernel

Doctrine bundle is mandatory to include too as it provides the common "@doctrine" service., (*4)

class AppKernel extends Kernel {
    public function registerBundles()
    {
        return [
            //...
            new Doctrine\Bundle\DoctrineBundle\DoctrineBundle,
            new ScayTrase\Api\Cruds\CrudsBundle(),
            //...
        ];
    }
}

That's all, you are ready to go!, (*5)

Configuration

See Configuration reference, (*6)

Usage

See usage manual, (*7)

Hooking (Event system)

See usage manual, (*8)

Dependencies

Currently the main dependency is doctrine/common library which provides the Criteria and the Selectable interface as powerful tool to configure fetch the entities. Second important dependency is doctrine/doctrine-bundle providing the doctrine registry. You can implement and override it though., (*9)

Integrations

See integration reference, (*10)

Current limitations

Property mapper

Currently only application-wide API property mapper is supported. This happens because you can use the relations during the criteria configuration and the mapper used for the one entity should handle all of them., (*11)

This means that you cannot use both jms/serializer and symfony/serializer as api metadata provider at the same time, you have to choose and convert mappings., (*12)

The Versions