Download the PHP package prewk/seriquent without Composer
On this page you can find all versions of the php package prewk/seriquent. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download prewk/seriquent
More information about prewk/seriquent
Files in prewk/seriquent
Download prewk/seriquent
More information about prewk/seriquent
Files in prewk/seriquent
Vendor prewk
Package seriquent
Short Description Eloquent anonymized (de)serialization
License MIT
Homepage http://github.com/prewk/seriquent
Package seriquent
Short Description Eloquent anonymized (de)serialization
License MIT
Homepage http://github.com/prewk/seriquent
Please rate this library. Is it a good library?
Informations about the package seriquent
Seriquent

- Serialize a tree of Eloquent models into a self-referential array with anonymized primary keys
- Deserialize it back into the database with new primary keys
Installation
composer require prewk/seriquent
Example
Your database has a foos
table, belonging to a qux
table.
foos
has a one-to-many relation to the bars
table.
Both bars
and qux
have a polymorphic one-to-many relation to the bazs
table (They are "bazable
").
Database contents
`
Desired results
`
Foo
,Bar
etc are the Eloquent models' FQCNs- All entities get a unique internal id
"@id": "@123"
- An entity refers to another entity by its internal id and the relation name
"foo": "@1"
- Regular columns are just values
"name": "Lorem ipsum"
Eloquent models and serialization blueprints
``
Describe a model's fields and relations to serialize/deserialize with a static getBlueprint
method returning an array of strings.
The strings are either a column name or a relation name. Primary key is automatically fetched.
Usage
``
License
MIT
All versions of seriquent with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6
illuminate/database Version ~5.1
illuminate/container Version ~5.1
illuminate/support Version ~5.1
illuminate/database Version ~5.1
illuminate/container Version ~5.1
illuminate/support Version ~5.1
The package prewk/seriquent contains the following files
Loading the files please wait ....