| layout | excerpt |
|---|---|
default |
Read, write and render music scores, Guitar Pro tabs and MIDI files. |
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.
- Read, convert and write GuitarPro/MIDI files
- Traverse and CRUD metadata and data
- Export data to JSON, XML, YAML and other formats
- Import data from PHP arrays, JSON & serialized strings
- Web-rendering in VexTab notation
- Web-rendering as an ASCII tablature
- Calculate durations in seconds
-
Some use-cases examples:
-
Read and update song metadata (Name, author)
-
Read measures for a particular track
-
Read notes for a particular measure
-
PhpTabs currently supports the following file formats:
- GuitarPro 3 (.gp3)
- GuitarPro 4 (.gp4)
- GuitarPro 5 (.gp5)
- MIDI files (.mid, .midi)
Support for PHP 7.2+ and 8.0
If you have any questions, please [open an issue]({{ site.github_repository_url }}/issues).
You want to write another parser, to fix a bug? Please open [a pull request]({{ site.github_repository_url }}).
PhpTabs is licensed under [LGPL2.1+]({{ site.github_repository_url }}/blob/master/LICENSE).
{% capture doc_url %}{{ site.github_doc_repository_url }}/index.md{% endcapture %} {% include edit-doc-link.html %}