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)3759.4k—9.3%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 1mo 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

38

—

LowBetter than 85% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity42

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

4500d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9cb8047aac36e053ac854aa3235d075dcdff2492e6728ec5125f971041780730?d=identicon)[tmont](/maintainers/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.4k902.6M1.8k](/packages/nikic-php-parser)[doctrine/lexer

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

11.2k910.8M118](/packages/doctrine-lexer)[erusev/parsedown

Parser for Markdown.

15.0k151.8M732](/packages/erusev-parsedown)[league/commonmark

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

3.0k404.0M702](/packages/league-commonmark)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)

PHPackages © 2026

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