Download the PHP package fireworkweb/smpte without Composer

On this page you can find all versions of the php package fireworkweb/smpte. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package smpte

smpte.php

Build Status codecov

Easily deal with SMPTE Timecode format in PHP. If you need a Javascript lib, check out fireworkweb/smpte.js.

Installation

You can install the package via composer:

Usage

Include the Timecode or Validations classes:

You can instantiate it directly using new:

Or you can use the static helper:

Properties

Property Type Description
getFrameCount() int Total number of frames
getHours() int Hours number
getMinutes() int Minutes number
getSeconds() int Seconds number
getFrames() int Frames number
durationInSeconds() int Timecode duration in seconds

Object Methods

__construct($time = 0, $frameRate = null, $dropFrame = null)

$time as int is the frame count to be setted with. To deal with seconds, use fromSeconds.

Note: if $frameRate or $dropFrame are null, it will use the default.

toString() / __toString()

Returns a timecode string representation.

add($time, $operation = 1)

Adds a timecode or a frame count to the current Timecode object.

subtract($time)

Substracts a timecode or a frame count to the current Timecode object.

setHours($hours)

Directly set object hours.

setMinutes($minutes)

Directly set object minutes.

setSeconds($seconds)

Directly set object seconds.

setFrames($frames)

Directly set object frames.

setFrameCount($frameCount)

Directly set object frame count. This will recalculate all other attributes, so use it with care.

Static Methods

frameCountFromTimecode($time, $frameRate = null, $dropFrame = null)

Returns the frame count from a time.

fromSeconds($seconds, $frameRate = null, $dropFrame = null)

Instantiate a new object from seconds instead of timecode/framecount.

setDefaultFrameRate($frameRate)

Change default frame rate to instantiate objects with.

setDefaultDropFrame($dropFrame)

Change default drop frame to instantiate objects with.

Contributing

All contribution is welcome, please feel free to open tickets and pull requests.

License

MIT.


All versions of smpte with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1|^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package fireworkweb/smpte contains the following files

Loading the files please wait ....