2017 © Pedro PelĂĄez
 

library muse

image

knplabs/muse

  • Thursday, March 30, 2017
  • by Knplabs
  • Repository
  • 15 Watchers
  • 5 Stars
  • 6,575 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

DEPRECATED

Unfortunately we decided to not maintain this project anymore (see why). If you want to mark another package as a replacement for this one please send an email to hello@knplabs.com., (*1)

Muse

Build Status, (*2)

The Muse inspires itself from a JSON Schema (only wth JSON Schema v4 for now) to generate a valid JSON., (*3)

Usage

``` php $schema = <<<SCHEMA { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } } SCHEMA;, (*4)

echo "Dumb data provider\n"; echo \Muse\MuseFactory::createDumbMuse()->inspire($schema);, (*5)

echo "\n\n"; echo "Random data provider\n"; echo \Muse\MuseFactory::createRandomMuse()->inspire($schema);, (*6)


will output:

Dumb data provider { "id": 1, "name": "foo" }, (*7)

Random data provider { "id": 1634388030, "name": "ajkvu5xpepkwwc04skkw4wgs0s4ok48" } ```, (*8)

The Versions

30/03 2017

dev-feature/apply-json-specs-constraints

dev-feature/apply-json-specs-constraints

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gildas Quéméner

24/03 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gildas Quéméner

24/03 2017

1.1.0

1.1.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gildas Quéméner

17/03 2015

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gildas Quéméner