Download the PHP package new-inventor/property-bag without Composer
On this page you can find all versions of the php package new-inventor/property-bag. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download new-inventor/property-bag
More information about new-inventor/property-bag
Files in new-inventor/property-bag
Download new-inventor/property-bag
More information about new-inventor/property-bag
Files in new-inventor/property-bag
Vendor new-inventor
Package property-bag
Short Description Property bag with automatic value normalizing and formatting
License MIT
Package property-bag
Short Description Property bag with automatic value normalizing and formatting
License MIT
Please rate this library. Is it a good library?
Informations about the package property-bag
Property bag
This utility provide to you:
- base property bag class
- property bab interface
- configuration for property bag
- metadata classes for property bag
- generator command to generate classes from configuration
Installation
composer require new-inventor/property-bag
PropertyBag usage
Property bag creation
- Create property bag configuration.
- run
php bin/console generate:bag <configuration path> <destination path> [--base-namespace="Base\Namespase"] [-f(to force rewrite destination files)]
- check if file exist in destination folder
- if you want, you can write some code between comments
CustomCodeBegin
andCustomCodeEnd
Stand alone object with no configuration
Object with configuration
Configuration file
Where:
- parent(root) - parent class. If does not specified, then
NewInventor\PropertyBag\PropertyBag
- abstract(root) - is generated class abstract
- validation(root) - symfony validation config
- properties(root) - list of properties
- validation(in property) - symfony validation for class getter
- transformers(in property) - short class names from [https://github.com/new-inventor/transformers] or full class name from you code
- nested(in property) - property is nested class so it must provide class and can provide array key(to be an array)
- default(in property) - default value of property
- getters(root) - can be bool or object. Which getters generate in class.
- setters(root) - can be bool or object. Which setters generate in class.
In transformers you can specify group, transformer parameters. In InnerTransformer
and ChainTransformer
you must pass as parameters another Transformers.
If you do not specify the group, then it will be 'default'.
You can pass to parameters scalars, arrays, callable, and special arrays with one element(const, static).
Usage
All versions of property-bag with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1
new-inventor/data-structure Version ^3.0
new-inventor/transformers Version ^1.0
new-inventor/data-structure Version ^3.0
new-inventor/transformers Version ^1.0
The package new-inventor/property-bag contains the following files
Loading the files please wait ....