abouvier/clrmamepro-parser
Composer 安装命令:
composer require abouvier/clrmamepro-parser
包简介
Parser for ClrMamePro DAT files
README 文档
README
clrmamepro-parser
Parser for ClrMamePro DAT files, using Parle PHP extension.
Installation
$ composer require abouvier/clrmamepro-parser
Example
$ cat "Microsoft - Xbox - BIOS Datfile (7) (2010-09-13).dat"
clrmamepro (
name "Microsoft - Xbox - BIOS Images"
description "Microsoft - Xbox - BIOS Images (7) (2010-09-13)"
category Console
version 2010-09-13
author "Jackal | redump.org"
)
game (
name "xbox-3944"
description "Xbox v1.0 (Kernel Version 1.00.3944.01)"
rom ( name xbox-3944.bin size 1048576 crc 32a9ecb6 md5 e8b39b98cf775496c1c76e4f7756e6ed sha1 67054fc88bda94e33e86f1b19be60efec0724fb6 )
)
game (
name "xbox-4034"
description "Xbox v1.0 (Kernel Version 1.00.4034.01)"
rom ( name xbox-4034.bin size 1048576 crc 0d6fc88f md5 b49a417511b2dbb485aa255a32a319d1 sha1 ab676b712204fb1728bf89f9cd541a8f5a64ab97 )
)
game (
name "xbox-4817"
description "Xbox v1.1 (Kernel Version 1.00.4817.01)"
rom ( name xbox-4817.bin size 1048576 crc 3f30863a md5 430b3edf0f1ea5c77f47845ed3cbd22b sha1 dc955bd4d3ca71e01214a49e5d0aba615270c03c )
)
$ cat example.php
<?php use Abouvier\Clrmamepro\Exception\ParserException; use Abouvier\Clrmamepro\Parser; require __DIR__.'/vendor/autoload.php'; try { print_r(Parser::create()->parse(file_get_contents('Microsoft - Xbox - BIOS Datfile (7) (2010-09-13).dat'))); } catch (ParserException $e) { fprintf(STDERR, "%s\n", $e->getMessage()); exit(1); }
$ php example.php
Array
(
[clrmamepro] => Array
(
[0] => Array
(
[name] => Microsoft - Xbox - BIOS Images
[description] => Microsoft - Xbox - BIOS Images (7) (2010-09-13)
[category] => Console
[version] => 2010-09-13
[author] => Jackal | redump.org
)
)
[game] => Array
(
[0] => Array
(
[name] => xbox-3944
[description] => Xbox v1.0 (Kernel Version 1.00.3944.01)
[rom] => Array
(
[0] => Array
(
[name] => xbox-3944.bin
[size] => 1048576
[crc] => 32a9ecb6
[md5] => e8b39b98cf775496c1c76e4f7756e6ed
[sha1] => 67054fc88bda94e33e86f1b19be60efec0724fb6
)
)
)
[1] => Array
(
[name] => xbox-4034
[description] => Xbox v1.0 (Kernel Version 1.00.4034.01)
[rom] => Array
(
[0] => Array
(
[name] => xbox-4034.bin
[size] => 1048576
[crc] => 0d6fc88f
[md5] => b49a417511b2dbb485aa255a32a319d1
[sha1] => ab676b712204fb1728bf89f9cd541a8f5a64ab97
)
)
)
[2] => Array
(
[name] => xbox-4817
[description] => Xbox v1.1 (Kernel Version 1.00.4817.01)
[rom] => Array
(
[0] => Array
(
[name] => xbox-4817.bin
[size] => 1048576
[crc] => 3f30863a
[md5] => 430b3edf0f1ea5c77f47845ed3cbd22b
[sha1] => dc955bd4d3ca71e01214a49e5d0aba615270c03c
)
)
)
)
)
abouvier/clrmamepro-parser 适用场景与选型建议
abouvier/clrmamepro-parser 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 19 次下载、GitHub Stars 达 2, 最近一次更新时间为 2022 年 05 月 31 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「parser」 「hash」 「game」 「lexer」 「emulation」 「rom」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 abouvier/clrmamepro-parser 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 abouvier/clrmamepro-parser 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 abouvier/clrmamepro-parser 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Easy to use SDK with grabber for multiple platforms at once like YouTube, Dailymotion, Facebook and more.
An MT940 bank statement parser for PHP
Article CSS-ID Frontend Output Optimization
♺ Laravel Nova Hashids card. Convert your ids.
Laravel integration for the jsonapi.org parser
A modern HTML DOM parser for PHP using DOMDocument and Symfony CssSelector.
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2022-05-31