PhpTabs DocumentationΒΆ
PhpTabs is a PHP library for reading, writing and rendering tabs and MIDI files.
It provides direct methods to read a song name, get a list of instruments or whatever be your needs.
Phptabs is built on the top of a music stack that lets you create or modify your songs.
use PhpTabs\PhpTabs;
$filename = 'my-file.gp5';
$song = new PhpTabs($filename);
// Display some metadata
echo $song->getName();
// Display the number of measures
// for the first track
echo $song->getTrack(0)->countMeasures();