2017 © Pedro Peláez
 

library normalplaytime

PHP parser for Normal Play Time (RFC 2326)

image

podlove/normalplaytime

PHP parser for Normal Play Time (RFC 2326)

  • Monday, June 24, 2013
  • by eteubert
  • Repository
  • 12 Watchers
  • 0 Stars
  • 3,448 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 2 % Grown

The README.md

Normal Play Time Parser

Build Status, (*1)

PHP parser for Normal Play Time (RFC 2326), (*2)

  • http://www.ietf.org/rfc/rfc2326.txt
  • http://www.w3.org/TR/media-frags/#npttimedef

Usage

<?php
use \Podlove\NormalPlayTime\Parser;

// get seconds or milliseconds
Parser::parse("1.834");      // 1834
Parser::parse("1.834", "s"); // 1

// invalid returns NULL
Parser::parse("abc"); // NULL

// valid example NPT strings
Parser::parse("1");        // 1000
Parser::parse("12:34");    // 754000
Parser::parse("12:34.56"); // 754560
Parser::parse("1:2");      // 62000
Parser::parse("1:2:3.4");  // 3723400

The Versions

24/06 2013

dev-master

9999999-dev http://github.com/podlove/normalplaytime

PHP parser for Normal Play Time (RFC 2326)

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

parser time rfc podlove npt

24/06 2013

v1.0.3

1.0.3.0 http://github.com/podlove/normalplaytime

PHP parser for Normal Play Time (RFC 2326)

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

parser time rfc podlove npt

31/05 2013

v1.0.2

1.0.2.0 http://github.com/podlove/normalplaytime

PHP parser for Normal Play Time (RFC 2326)

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

parser time rfc podlove npt

30/04 2013

v1.0.1

1.0.1.0 http://github.com/podlove/normalplaytime

PHP parser for Normal Play Time (RFC 2326)

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

parser time rfc npt

30/04 2013

v1.0.0

1.0.0.0 http://github.com/podlove/normalplaytime

PHP parser for Normal Play Time (RFC 2326)

  Sources   Download

MIT

The Requires

 

parser time rfc npt