perry-rylance/midi-php
Composer 安装命令:
composer require perry-rylance/midi-php
包简介
Read, build and write MIDI files, tracks and events in PHP
关键字:
README 文档
README
A package for reading and writing MIDI files and streams in PHP.
Usage
Reading MIDI data
- Get your data into a binary string
- Instantiate a
new ReadStreamwith your binary data - Instantiate a
new File - Call
readBytespassing in yourReadStream
Creating MIDI data
- Instantiate a
new File - Instantiate a
new Trackand push it to your filestracks - Instantiate any subclasses of
Eventyou need, egNoteOnEvent - Push your events to the tracks
events - Don't forget
EndOfTrackEvent!
Writing MIDI data
- You'll need a
Fileeither read in or created from scratch as described above - Instantiate a
new WriteStream - Call
writeByteson yourFilepassing in yourWriteStream - Use
toBinaryon yourWriteStreamto get the binary data
Development
-dev containers with XDebug are provided and will stay open once started.
Testing
All tests can be run with cross-version-tests.sh.
Tests can be run on specific versions by starting the respective containers.
Credits
- With thanks to Recording Blogs, Teragon Audio and Mido for insight into the MIDI spec.
- With thanks to jazz-soft for the test files.
- With thanks to Jeff Boudier for MIDIopsy
perry-rylance/midi-php 适用场景与选型建议
perry-rylance/midi-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 128 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 07 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「midi」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 perry-rylance/midi-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 perry-rylance/midi-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 perry-rylance/midi-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
MIDI parsing library
A PHP library for reading, writing and rendering Guitar Pro and MIDI files
PHP client for the Flat REST API
MIDI library
PHP port of Tonal.js - A music theory library for notes, intervals, chords, scales, and more
Create MusicXML files with PHP
统计信息
- 总下载量: 128
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-07-21