Download the PHP package pjplonka/leaf-cmf-core without Composer
On this page you can find all versions of the php package pjplonka/leaf-cmf-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 leaf-cmf-core
Assumptions
Interfaces:
- ConfigurationProvider
- Elements (Element Repository)
- EventDispatcher
Packages
- Symfony validator is required and can not be replaced.
All validation rules must be provided from Symfony Validator Constraints list. - Uuid Interface is provided by symfony/uid package
- Only DateTimeImmutable objects are used
Makefile
Examples:
Composer
Install composer packages:
make composer:install
Require composer package:
make composer:require p=symfony/validator
Tests
make tests:run
or with filter:
make tests:run f=CreateElementHandlerTest
Stan
make stan
TODO:
- Add assertions to every field type (e.g. StringType must contain StringValue which checks base validation rules
like
is_string
ormax_length=200
) and for element (e.g. field name cannot be duplicated) - configuration validator + ConfigurationIsInvalidException
- encryption for field on demand (in configuration)
- element
name
property should be changed to something like group, band or something - every field should have own constraints instead of holding it in configuration array (and configuration can hold additional constraints)
- add some TestField to use it in tests to not use real field
- what about read model? do we need any bus for it?
- write more about makefile in readme
- fields should contain basic constraints (eg. string must be string and max length is 255)
- FieldsDtoValidator: rename this class + validate configuration field type (type can be invalid e.g. not exist)
- FieldsDtoValidator should be a default one for usage
- transactional manager interface?
- add assertion class
- validation failed exception could be used form symfony package
- test for empty constraints (allowMissingFields) is set to true
- when tests are run in docker it creates container and it is not reusable (every time make run:tests is run, new container is created)
All versions of leaf-cmf-core with dependencies
PHP Build Version
Package Version
The package pjplonka/leaf-cmf-core contains the following files
Loading the files please wait ....