2017 © Pedro Peláez
 

library siren-php

Siren hypermedia type implementation for PHP

image

jefersondaniel/siren-php

Siren hypermedia type implementation for PHP

  • Friday, March 18, 2016
  • by jefersondaniel
  • Repository
  • 2 Watchers
  • 8 Stars
  • 349 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

SirenPHP

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Siren hypermedia type implementation for PHP, (*2)

Introduction

Siren is a hypermedia specification for representing entities. As HTML is used for visually representing documents on a Web site, Siren is a specification for presenting entities via a Web API. Siren offers structures to communicate information about entities, actions for executing state transitions, and links for client navigation., (*3)

See siren specification, (*4)

Installing with composer

composer.phar require jefersondaniel/siren-php

Encoding a resource

$collection = new SirenPHP\Entity(
    '/collection/1',
    ['count' => 3],
    ['collection']
);
$entity = new SirenPHP\Entity(
    '/book/1',
    ['name' => 'The Book 1'],
    ['book']
);
$collection->appendEntity(['item'], $entity);
$link = new SirenPHP\Link(['next'], '/collection/2');
$collection->appendLink($link);

echo (string) $collection;

The Versions

18/03 2016

dev-master

9999999-dev

Siren hypermedia type implementation for PHP

  Sources   Download

The Requires

  • php >=5.3.0

 

by Jeferson Daniel

json siren hypermedia

18/03 2016

1.0.2

1.0.2.0

Siren hypermedia type implementation for PHP

  Sources   Download

The Requires

  • php >=5.3.0

 

by Jeferson Daniel

json siren hypermedia

17/03 2016

1.0.1

1.0.1.0

Siren hypermedia type implementation for PHP

  Sources   Download

The Requires

  • php >=5.3.0

 

by Jeferson Daniel

json siren hypermedia

06/03 2016

1.0.0

1.0.0.0

Siren hypermedia type implementation for PHP

  Sources   Download

The Requires

  • php >=5.3.0

 

by Jeferson Daniel

json siren hypermedia

18/11 2015

0.6.1

0.6.1.0

Siren hypermedia type implementation for PHP

  Sources   Download

The Requires

  • php >=5.3.0

 

by Jeferson Daniel

json siren hypermedia

16/06 2014

0.6

0.6.0.0

Siren hypermedia type implementation for PHP

  Sources   Download

The Requires

  • php >=5.3.0

 

by Jeferson Daniel

json siren hypermedia