Download the PHP package phpro/zf-smartcrud without Composer
On this page you can find all versions of the php package phpro/zf-smartcrud. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package zf-smartcrud
Repository abandoned 2020-11-27
This repository has been archived since we are not using it anymore internally. Feel free to use it AS-IS, we won't be providing any support anymore.
SmartCrud for Zend Framework
Module providing a SmartCrud for working with the Zend Framework 2 MVC layer.
Installation
Installation of this module uses composer. For composer documentation, please refer to getcomposer.org.
Then add Phpro\SmartCrud
to your config/application.config.php
.
Installation without composer is not officially supported and requires you to manually install all dependencies
that are listed in composer.json
Documentation
Configuration
It is possible to configure the smartcrud services on multiple places. e.g. For the list service, the configuration will be merged as followed:
- phpro-smartcrud-service['default']
- phpro-smartcrud-service['default-list']
- service_manager['my-custom-smartcrud-service']['default']
- service_manager['my-custom-smartcrud-service']['list']
This means it is possible to specify some default configuration and overwrite it for custom services.
SmartCrud Configuration
Gateways
It is possible to configure multiple data-source gateways. Those gateways are being used by the services to load and save the data.
Services
List Service
The list service has some extra configurable options. It is required to specify a paginator and it is optional to add a query provider to filter / sort lists.
Paginator
Query Provider
A query provider implements the QueryProviderInterface
.
It is possible to add your own query provider to a List Service:
listeners:
Array of service manager keys, which return EventListenerAggregateInterface. These listeners can be used listen to SmartCrud events on entities.
Available SmartCrud events:
Controllers
It is possible to specify some default controller configuration and overwrite it for custom controllers. The configuration will be merged as followed:
- phpro-smartcrud-controller['default']
- phpro-smartcrud-controller['my-custom-smartcrud-controller']
More coming soon!
All versions of zf-smartcrud with dependencies
zendframework/zend-config Version 2.*
zendframework/zend-mvc Version 2.*
zendframework/zend-http Version 2.*
zendframework/zend-eventmanager Version 2.*
zendframework/zend-form Version 2.*
zendframework/zend-modulemanager Version 2.*
zendframework/zend-stdlib Version 2.*
zendframework/zend-servicemanager Version 2.*
zendframework/zend-session Version 2.*
zendframework/zend-view Version 2.*
zendframework/zend-version Version 2.*
symfony/console Version 2.*