Download the PHP package adamquaile/json-object-mapper without Composer
On this page you can find all versions of the php package adamquaile/json-object-mapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download adamquaile/json-object-mapper
More information about adamquaile/json-object-mapper
Files in adamquaile/json-object-mapper
Download adamquaile/json-object-mapper
More information about adamquaile/json-object-mapper
Files in adamquaile/json-object-mapper
Vendor adamquaile
Package json-object-mapper
Short Description Maps JSON files to PHP objects, intended for simple model separation and manual content authoring
License
Package json-object-mapper
Short Description Maps JSON files to PHP objects, intended for simple model separation and manual content authoring
License
Please rate this library. Is it a good library?
Informations about the package json-object-mapper
JSON Object Mapper
Small library to read JSON files from a directory and turn them into PHP objects. Designed for simple content authoring and model separation by developers without the need for a whole DBMS.
Not intended as any kind of DBMS, or application writable persistence layer
Main Features
- Small / simple query API
- Can either map to objects you define, or use default provided (behaviour similar to
stdClass
)
Installation
composer require adamquaile/json-object-mapper
Usage
Full documentation here
<?php
require __DIR__.'/vendor/autoload.php';
$manager = new \AdamQuaile\JsonObjectMapper\EntityManager('/path/to/storage');
// Either
$book = $manager->find('books/1984');
$book->isbn;
$book->getTitle(); // etc
// or
$books = $manager->findAll('books');
$books[0]->isbn
$books[0]->getTitle() // etc
// or
$books = $manager->findAll('books', $manager->query()->matches('author.name', '/george/i'));
$books[0]->getTitle() // etc
All versions of json-object-mapper with dependencies
PHP Build Version
Package Version
The package adamquaile/json-object-mapper contains the following files
Loading the files please wait ....