ekyna / resource
Resource management library
Installs: 1 015
Dependents: 3
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:component
Requires
- php: >=5.4
- doctrine/orm: ~2.5
- symfony/event-dispatcher: ~2.7|~3.0
- symfony/options-resolver: ~2.7|~3.0
- symfony/property-access: ~2.7|~3.0
Requires (Dev)
- phpunit/phpunit: ~5.2
README
Registry
- resources configurations
Behaviors
- toggleable : enable/disable, default (eventually per group)
- timestampable
- searchable : elasticsearch (external behavior/out of this component)
- ...
Auto mapping
With persistence layer, based on behaviors.
Actions (ADR pattern)
- create
- read
- update
- delete
- toggle
- move
- search
- ...
Responder (ADR pattern)
- ResponderRegistry, stored as [ => ] by a compiler pass
- Configured on route, operation or behavior level.
### Auto Routing
- api
- admin
### Service container builder
- class parameter
- repository
- manager
- event
- form
- table
Event system
- each action may dispatch a pre/post event
- onPersist (ex during doctrine onFlush) + recompute helper