2017 © Pedro Peláez
 

library create-jsonld-tiny

Simple PHP library to create JSON-LD output. Tiny version

image

lengthofrope/create-jsonld-tiny

Simple PHP library to create JSON-LD output. Tiny version

  • Saturday, April 2, 2016
  • by lengthofrope
  • Repository
  • 1 Watchers
  • 0 Stars
  • 93 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 11 % Grown

The README.md

create-jsonld-tiny Build Status Codacy Badge

Simple PHP library to create JSON-LD output. Tiny version!, (*1)

Note: Datatypes are not yet supported, (*2)

This is the TINY VERSION of the class, mainly there for the following schema's: - Article, - BlogPosting, - Book, - Code, - Game, - Movie, - MusicRecording, - Painting, - Photograph, - Recipe, - Organization, - Corporation, - LocalBusiness, - SportsOrganization,, (*3)

Usage:, (*4)

use \LengthOfRope\JSONLD;
use \LengthOfRope\JSONLD\Schema;

$Create = JSONLD\Create::factory()->add(
    Schema\BookSchema::factory()
        ->setAuthor(Schema\PersonSchema::factory()->setName("NAME")->setEmail("email@example.com"))
        ->setAbout("PHP")
        ->setName("Superb PHP Book")
        ->setAlternateName("Book one of three")
)->add(
    Schema\OrganizationSchema::factory()
        ->setAddress(
            Schema\PostalAddressSchema::factory()
                ->setPostalCode("1234 AA")
                ->setStreetAddress("Somewhere 12")
                ->setAddressCountry("NL")
                ->setAddressLocality("Amersfoort")
                ->setEmail("email@example.com")
                ->setTelephone("033-1234567")
                ->setAddressRegion("Utrecht")
        )
        ->setName("Devver Company")
        ->setDescription("Just another developer")
);

echo $Create->getJSONLDScript();

The Versions

02/04 2016

dev-master

9999999-dev https://github.com/lengthofrope/create-jsonld-tiny

Simple PHP library to create JSON-LD output. Tiny version

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

by Bas de Kort

json-ld jsonld

02/04 2016

0.10.3

0.10.3.0 https://github.com/lengthofrope/create-jsonld-tiny

Simple PHP library to create JSON-LD output. Tiny version

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

by Bas de Kort

json-ld jsonld

02/04 2016

dev-develop

dev-develop https://github.com/lengthofrope/create-jsonld-tiny

Simple PHP library to create JSON-LD output. Tiny version

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

by Bas de Kort

json-ld jsonld

08/03 2016

0.10.2

0.10.2.0 https://github.com/lengthofrope/create-jsonld-tiny

Simple PHP library to create JSON-LD output. Tiny version

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

by Bas de Kort

json-ld jsonld

08/03 2016

0.10.1

0.10.1.0 https://github.com/lengthofrope/create-jsonld-tiny

Simple PHP library to create JSON-LD output. Tiny version

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

by Bas de Kort

json-ld jsonld

08/03 2016

0.10.0

0.10.0.0 https://github.com/lengthofrope/create-jsonld-tiny

Simple PHP library to create JSON-LD output. Tiny version

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

by Bas de Kort

json-ld jsonld

25/02 2016

0.9.1

0.9.1.0 https://github.com/lengthofrope/create-jsonld

Simple PHP library to create JSON-LD output.

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

by Bas de Kort

json-ld jsonld

03/02 2016

0.9.0

0.9.0.0 https://github.com/lengthofrope/create-jsonld

Simple PHP library to create JSON-LD output.

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

by Bas de Kort

json-ld jsonld