PHPackages                             tmont/midiparser - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. tmont/midiparser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

tmont/midiparser
================

MIDI parsing library

1.1.0(12y ago)37109.0k↑21.1%3[2 issues](https://github.com/tmont/midiparser/issues)WTFPLPHP

Since Jan 22Pushed 7y ago6 watchersCompare

[ Source](https://github.com/tmont/midiparser)[ Packagist](https://packagist.org/packages/tmont/midiparser)[ RSS](/packages/tmont-midiparser/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

PHP MIDI Parser
===============

[](#php-midi-parser)

[![Build Status](https://camo.githubusercontent.com/9eefdd4667cb422b28c6c3f6c6dc494f153d62c67129cd9d7cbdc792e480a431/68747470733a2f2f7472617669732d63692e6f72672f746d6f6e742f6d6964697061727365722e706e67)](https://travis-ci.org/tmont/midiparser)

Licensed under [WTFPL](https://github.com/tmont/midiparser/blob/master/LICENSE)

Installation
------------

[](#installation)

### Requirements

[](#requirements)

- PHP &gt;= 5.3.0

Usage
-----

[](#usage)

If you clone the repository, you can run `ant sample` to run the sample script at [./sample/test.php](./sample/test.php), which will generate an HTML report.

The following snippet is an example of how to generate a plaintext report.

```
require_once 'vendor/autoload.php';

use Tmont\Midi\Parsing\FileParser;
use Tmont\Midi\Reporting\TextFormatter;
use Tmont\Midi\Reporting\Printer;

//create a new file parser
$parser = new FileParser();

//replace this path with the path to an actual MIDI file
$parser->load('/path/to/midi/file.mid');

//create a Printer object
$printer = new Printer(new TextFormatter(), $parser);

//output the parse result
$printer->printAll();
```

### Parser Usage

[](#parser-usage)

If you want more control over the data, you can use the parser directly. See the [print notes](./sample/print-notes.php) sample script for an example of how to do this.

Development
-----------

[](#development)

```
# install dependencies
composer install

# run tests
vendor/bin/phpunit
```

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity45

Moderate usage in the ecosystem

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4546d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/188562?v=4)[tmont](/maintainers/tmont)[@tmont](https://github.com/tmont)

---

Top Contributors

[![tmont](https://avatars.githubusercontent.com/u/188562?v=4)](https://github.com/tmont "tmont (79 commits)")

---

Tags

parsermusicmidi

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tmont-midiparser/health.svg)

```
[![Health](https://phpackages.com/badges/tmont-midiparser/health.svg)](https://phpackages.com/packages/tmont-midiparser)
```

###  Alternatives

[nikic/php-parser

A PHP parser written in PHP

17.4k954.1M2.5k](/packages/nikic-php-parser)[doctrine/lexer

PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.

11.2k959.9M160](/packages/doctrine-lexer)[erusev/parsedown

Parser for Markdown.

15.1k156.8M870](/packages/erusev-parsedown)[league/commonmark

Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)

3.0k437.5M1.0k](/packages/league-commonmark)[masterminds/html5

An HTML5 parser and serializer.

1.8k269.7M322](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k211.0M75](/packages/sabberworm-php-css-parser)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
