composer require stdtabs/phptabs
include 'vendor/autoload.php';
use PhpTabs\PhpTabs;
$song = new PhpTabs('mytab.gp4');
echo $song->getName();
include 'vendor/autoload.php';
use PhpTabs\PhpTabs;
$song = new PhpTabs('mytab.gp4');
foreach ($song->getTracks() as $track) {
echo sprinf(
'\n#%d - %s',
$track->getNumber(),
$track->getName()
);
}
include 'vendor/autoload.php';
use PhpTabs\PhpTabs;
$song = new PhpTabs('mytab.gp4');
echo $song->getVersion(); // 0.6.0
For various basic usages, see PhpTabs basics documentation.
For more examples, see traversing the tree documentation.