Download the PHP package krasnikov/ddd-core without Composer
On this page you can find all versions of the php package krasnikov/ddd-core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package ddd-core
DDD Core package
Class set for make lumen or laravel application with using DDD principles
The kit includes:
- Base Model used UUID
- Command Bus package
- Pagination class
- Sort class
- Repository interface and abstract implementation of postgres and array
- Translation trait
- UUID trait
Install
composer require krasnikov/ddd-core
Use Base model
Use UUID trait
Command Bus
Define command bus in base controller
Make command
Make command handler
Call in controller
Repository
Entity repository interface have to extend RepositoryInterface
and define filter method
Postgres entity repository have to implement Entity repository interface, extend AbstractPostgresRepository
and implement filter and __constructor method
Array entity repository have to implement Entity repository interface, extend AbstractArrayRepository
and implement filter and __constructor methods
- use in your controller for set pagination and send object to repository;
- use in your controller for set sorting and send object to repository.
- you can use
Krasnikov\EloquentJSON\PaginateRequest
in controller or extended in form request for validation pagination.
Example pagination and sort url
All versions of ddd-core with dependencies
PHP Build Version
Package Version
The package krasnikov/ddd-core contains the following files
Loading the files please wait ....