2017 © Pedro PelĂĄez
 

library urn

A PHP library for generating RFC 2141 compliant uniform resource names (URN).

image

gravitymedia/urn

A PHP library for generating RFC 2141 compliant uniform resource names (URN).

  • Thursday, June 30, 2016
  • by pCoLaSD
  • Repository
  • 1 Watchers
  • 1 Stars
  • 473 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 456 % Grown

The README.md

Uniform Resource Names (URN)

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads PHP Dependencies, (*1)

A PHP library for generating RFC 2141 compliant uniform resource names (URN)., (*2)

Requirements

This library has the following requirements:, (*3)

  • PHP 5.6+

Installation

Install Composer in your project:, (*4)

$ curl -s https://getcomposer.org/installer | php

Require the package via Composer:, (*5)

$ php composer.phar require gravitymedia/urn

Usage

// require autoloader
require 'vendor/autoload.php';

// import classes
use GravityMedia\Urn\Urn;

// create URN object from string
$urn = Urn::fromString('urn:example-namespace-id:just_an_example');

// dump namespace identifier
var_dump($urn->getNamespaceIdentifier()); // string(20) "example-namespace-id"

// dump namespace specific string
var_dump($urn->getNamespaceSpecificString()); // string(15) "just_an_example"

The Versions

30/06 2016

dev-master

9999999-dev

A PHP library for generating RFC 2141 compliant uniform resource names (URN).

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

30/06 2016

v0.2.0

0.2.0.0

A PHP library for generating RFC 2141 compliant uniform resource names (URN).

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

20/02 2015

v0.1.0

0.1.0.0

A PHP 5.3+ library for generating RFC 2141 compliant uniform resource names (URN)

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires