2017 © Pedro Peláez
 

library json-object-mapper

Maps JSON files to PHP objects, intended for simple model separation and manual content authoring

image

adamquaile/json-object-mapper

Maps JSON files to PHP objects, intended for simple model separation and manual content authoring

  • Friday, March 28, 2014
  • by adamquaile
  • Repository
  • 1 Watchers
  • 10 Stars
  • 40 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 16 Versions
  • 3 % Grown

The README.md

JSON Object Mapper

Build Status, (*1)

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., (*2)

Not intended as any kind of DBMS, or application writable persistence layer, (*3)

Main Features

Installation

composer require adamquaile/json-object-mapper

Usage

Full documentation here, (*4)

<?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

The Versions

28/03 2014

dev-master

9999999-dev

Maps JSON files to PHP objects, intended for simple model separation and manual content authoring

  Sources   Download

The Requires

 

The Development Requires

28/03 2014

1.0.2

1.0.2.0

Maps JSON files to PHP objects, intended for simple model separation and manual content authoring

  Sources   Download

The Requires

 

The Development Requires

28/03 2014

1.0.1

1.0.1.0

Maps JSON files to PHP objects, intended for simple model separation and manual content authoring

  Sources   Download

The Requires

 

The Development Requires

28/03 2014

1.0.0

1.0.0.0

Maps JSON files to PHP objects, intended for simple model separation and manual content authoring

  Sources   Download

The Requires

 

The Development Requires

18/03 2014

dev-release-1.0

dev-release-1.0

Maps JSON files to PHP objects, intended for simple model separation and manual content authoring

  Sources   Download

The Requires

 

The Development Requires

17/03 2014

0.4.0

0.4.0.0

Maps JSON files to PHP objects, intended for simple model separation and manual content authoring

  Sources   Download

The Requires

 

The Development Requires

17/03 2014

dev-feature-ordering

dev-feature-ordering

Maps JSON files to PHP objects, intended for simple model separation and manual content authoring

  Sources   Download

The Requires

 

The Development Requires

15/03 2014

0.3.1

0.3.1.0

Maps JSON files to PHP objects, intended for simple model separation and manual content authoring

  Sources   Download

The Requires

 

The Development Requires

15/03 2014

dev-fix-8-meta-file

dev-fix-8-meta-file

Maps JSON files to PHP objects, intended for simple model separation and manual content authoring

  Sources   Download

The Requires

 

The Development Requires

15/03 2014

0.3.0

0.3.0.0

Maps JSON files to PHP objects, intended for simple model separation and manual content authoring

  Sources   Download

The Requires

 

The Development Requires

15/03 2014

dev-feature-querying

dev-feature-querying

Maps JSON files to PHP objects, intended for simple model separation and manual content authoring

  Sources   Download

The Requires

 

The Development Requires

15/03 2014

0.2.0

0.2.0.0

Maps JSON files to PHP objects, intended for simple model separation and manual content authoring

  Sources   Download

The Requires

 

The Development Requires

15/03 2014

dev-feature-travis

dev-feature-travis

Maps JSON files to PHP objects, intended for simple model separation and manual content authoring

  Sources   Download

The Requires

 

The Development Requires

15/03 2014

0.1.0

0.1.0.0

Maps JSON files to PHP objects, intended for simple model separation and manual content authoring

  Sources   Download

The Requires

 

The Development Requires

14/03 2014

dev-feature-2-associations

dev-feature-2-associations

Maps JSON files to PHP objects, intended for simple model separation and manual content authoring

  Sources   Download

The Requires

 

The Development Requires

29/12 2013

v0.0.0

0.0.0.0

Maps JSON files to PHP objects, intended for simple model separation and manual content authoring

  Sources   Download

The Requires

 

The Development Requires