2017 © Pedro PelĂĄez
 

library uri-template

Implementation of RFC 6570 (URI Template) in a single PHP function

image

seebz/uri-template

Implementation of RFC 6570 (URI Template) in a single PHP function

  • Thursday, February 22, 2018
  • by Seebz
  • Repository
  • 1 Watchers
  • 8 Stars
  • 37 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

uri_template()

Implementation of RFC 6570 (URI Template) in a single PHP function., (*1)

Installation

Install the latest version with composer:, (*2)

$ composer require seebz/uri-template

Usage

<?php

require 'vendor/autoload.php';


$template = 'https://api.github.com/repos{/user,repo,function,id}';
$variables = array(
    'user'     => 'Seebz',
    'repo'     => 'uri-template',
    'function' => 'commits',
);

$uri = uri_template($template, $variables);
// "https://api.github.com/repos/Seebz/uri-template/commits"

License

Simply do what the fuck you want., (*3)

The Versions

22/02 2018

dev-master

9999999-dev https://github.com/Seebz/uri-template

Implementation of RFC 6570 (URI Template) in a single PHP function

  Sources   Download

WTFPL

The Requires

  • php >=5.3.0

 

The Development Requires

uri template rfc 6570 rfc6570 template uri

22/02 2018

1.x-dev

1.9999999.9999999.9999999-dev https://github.com/Seebz/uri-template

Implementation of RFC 6570 (URI Template) in a single PHP function

  Sources   Download

WTFPL

The Requires

  • php >=5.3.0

 

The Development Requires

uri template rfc6570

22/02 2018

1.1.0

1.1.0.0 https://github.com/Seebz/uri-template

Implementation of RFC 6570 (URI Template) in a single PHP function

  Sources   Download

WTFPL

The Requires

  • php >=5.3.0

 

The Development Requires

uri template rfc6570

29/05 2013

1.0.0

1.0.0.0 http://github.com/Seebz/uri-template

Implementation of RFC-6570 (Template URI) in a single PHP function

  Sources   Download

WTFPL

The Requires

  • php >=5.3.0

 

rfc 6570 template uri