Download the PHP package back-2-95/fields without Composer
On this page you can find all versions of the php package back-2-95/fields. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download back-2-95/fields
More information about back-2-95/fields
Files in back-2-95/fields
Package fields
Short Description CRUD Fields API for PHP7
License
Homepage https://github.com/back-2-95/php-crud-fields
Informations about the package fields
back-2-95/fields
Generic Field API for PHP7. This library handles only the metadata about entities and fields related to them.
TODO
I'll keep this todo list on top until the library is usable.
- Validate and force field data structure. Now they are just arrays of anything. (IN PROGRESS)
- In that structure, try to separate general, form and display related data.
- Implementation example (own repo) e.g. application which uses fields api, mongodb storage and zf2 classes
API
Create API and set storage:
Create EntityConfiguration with fields:
Store the created EntityConfiguration:
Get stored EntityConfiguration by name:
EntityConfiguration data
Example entity: track (as in music)
``
Notes: widget name can be anything, the implementing library will decide what the widgets are finally. E.g. widget "editor" can be CKeditor, TinyMCE or something else.
Output
This library should just return entities and their field configurations which can be then used by some other component to store, render, validate etc.
Rendering
Rendering is not responsibility of this class.
UI for creating configurations
UI is not part of this library. It should be another library which requires and uses this library.
Storage
Storing this configuration is not part of this library e.g. https://github.com/back-2-95/fields-mongodb
This library provides interface for Storage adapters and file based solution as an example.
By default this adapter uses path data/entities
for storing configurations.