laramore / types
All based instances and interfaces used by Laramore
Installs: 1 713
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=7.0.8
- laramore/base: >=0.9
Requires (Dev)
- phpmd/phpmd: >=2.7
- phpstan/phpstan: >=0.9.2
- phpunit/phpunit: >=6.5
- squizlabs/php_codesniffer: >=3.5
Suggests
- laramore/laramore: Laramore\Types is made in order to work with Laramore
README
Define all basic types, options and operators used by Laramore and its fields
Installation
Via composer
In your PHP project, run composer require laramore/types
.
Usage
This package is not meant to be used alone. It bundles all used types in different Laramore packages.
Elements
Elements are a sort of enumeration. They are managed with no specific order and can have different defined values.
Operator
An operator represent an SQL operator in a simple way. They are callable by Operator::equal()
for example which represents an =
operator.
Some operators can have constraints as a nullable
value, a collection
as value and so on.
OperatorManager
Manage all operators. Alias Operator
is usefull to require a specific operator.
Type
Define a specific type. It is usefull to have the same one definition for a specific type used by fields, migrations, validations, factories.
TypeManager
Manager all types. Alias Type
is usefull to get a specific type.
Option
Define a all option applied on fields. It is usefull to define a specific behavior for a field.
OptionManager
Manager all options. Alias Option
is usefull to get a specific option.