2017 © Pedro PelĂĄez
 

library timecode

Lib allowing to deal with timecode manipulation

image

m6web/timecode

Lib allowing to deal with timecode manipulation

  • Tuesday, January 16, 2018
  • by M6Web
  • Repository
  • 21 Watchers
  • 0 Stars
  • 16,477 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 15 % Grown

The README.md

m6web/timecode

Build Status Latest Stable Version Total Downloads License PHP Version Require, (*1)

Tiny PHP library to deal with (SMPTE) timecode through Timecode object representation., (*2)

Installation

composer require m6web/timecode

Usage

<?php

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

use M6Web\Component\Timecode\Timecode;

// Let's say we want to create a timecode corresponding to 9hours, 2minutes, 0seconds and 3frames with a framerate of 25 (which is the default framerate btw)

// We could either create it like any other PHP objects
$timecode = new Timecode(9, 2, 0, 3, 25); // hours, minutes, seconds, frames, framerate

// Or simply using its string representation
$timecode = Timecode::createFromString('09:02:00:03', 25);

// Or even using its total number of frames
$timecode = Timecode::createFromNumberOfFrames(813003, 25);


// Now let's say we want to subtract 5hours from our timecode
$resultTimecode = $timecode->sub(new Timecode(5, 0, 0, 0));

$resultTimecode->getHours(); // 4
$resultTimecode->getMinutes(); // 2
$resultTimecode->getSeconds(); // 0
$resultTimecode->getFrames(); // 3
echo $resultTimecode; // '04:02:00:03'

The Versions

16/01 2018

dev-master

9999999-dev

Lib allowing to deal with timecode manipulation

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Oliver Thébault

datetime timecode time code date manipulation

16/01 2018

v0.4.0

0.4.0.0

Lib allowing to deal with timecode manipulation

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Oliver Thébault

datetime timecode time code date manipulation

16/01 2018

dev-feature/add-check-tc-method

dev-feature/add-check-tc-method

Lib allowing to deal with timecode manipulation

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Oliver Thébault

datetime timecode time code date manipulation

18/07 2017

v0.3.0

0.3.0.0

Lib allowing to deal with timecode manipulation

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Oliver Thébault

datetime timecode time code date manipulation

22/05 2017

v0.2.0

0.2.0.0

Lib allowing to deal with timecode manipulation

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Oliver Thébault

datetime timecode time code date manipulation

16/05 2017

v0.1.0

0.1.0.0

Lib allowing to deal with timecode manipulation

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Oliver Thébault

datetime timecode time code date manipulation