coongeek / json-document-storage
This package is abandoned and no longer maintained.
No replacement package was suggested.
There is no license information available for the latest version (dev-master) of this package.
dev-master
2018-01-15 18:29 UTC
Requires
- jms/serializer: ^1.8
- symfony/http-foundation: ^3.3
- symfony/http-kernel: ^3.3
This package is auto-updated.
Last update: 2018-10-29 22:14:29 UTC
README
Research library representing object relational mapper that provides persistence for PHP objects into JSON document storage.
Getting Started
{
"require": {
"coongeek/json-document-storage": "*"
}
}
Prerequisites
- This library depends on doctrine's AnnotationReader, so, to get things work in a proper way you need to load annotations registry first:
use Doctrine\Common\Annotations\AnnotationRegistry;
AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
Another one dependency is JMSSerializer which handles serialialization/deserialization Entities into/from storage, so you need to explicitly set what properties you want to expose onto your Entity classes through the annotations. Here you can read more: https://jmsyst.com/libs/serializer/master/reference/annotations
Also, entity classes itself must be annotated with
@Coongeek\Lib\JsonDocumentStorage\Annotation\Entity()
And entity identifier with
@Coongeek\Lib\JsonDocumentStorage\Annotation\Id()
Authors
- Valentin Knyazev
License
This project is serving research purpose and absolutely free to use.
Acknowledgments
Will be added soon:)