承接 xgerhard/wom-php 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

xgerhard/wom-php

Composer 安装命令:

composer require xgerhard/wom-php

包简介

PHP wrapper for the Wise Old Man API

README 文档

README

wom-php is a PHP wrapper for the Wise Old Man API.
Wise Old Man is an open source Old School RuneScape player progress tracker: wiseoldman.net.

Bugs / Feature requests

Found a bug or want to request a feature? Open an issue.

Usage

composer require xgerhard/wom-php
use WOM\Client;

$client = new Client();
$player = $client->players->get('zezima');

echo $player->displayName; // Zezima

All model properties are directly accessible via object-style access:

$level = $player->latestSnapshot->data->skills->overall->level;

Models also include helpful formatting methods for display:

echo $boss->formatMetric(); // Chambers Of Xeric
echo $boss->formatRank(); // 13.37k
echo $skill->formatExperience(); // 13.03m

More helper methods will be added in future releases, including support for custom formatting.

Documentation

See docs/index.md for the full documentation.

Resource Description
Players Search, track and fetch player data
Groups Manage and fetch group data
Competitions Manage and fetch competition data
Deltas Fetch delta leaderboards
Records Fetch record leaderboards
Efficiency Fetch efficiency rates and leaderboards
Name Changes Search and submit name changes

Contributing

Feel free to explore, contribute, or play around with this wrapper.

To set up a local development environment for the package, follow these steps:

  1. Clone the repository:
git clone https://github.com/xgerhard/wom-php.git
  1. Create a new folder for your test project, and add a composer.json file pointing to your local clone:
{
  "repositories": [
    {
      "type": "path",
      "url": "../path/to/local/wom-php",
      "options": {
        "symlink": true
      }
    }
  ],
  "require": {
    "xgerhard/wom-php": "dev-main"
  }
}
  1. Install the local package:
composer require xgerhard/wom-php:dev-main
  1. Your project will now use your local wom-php version and any changes you make will be reflected immediately.

Running Tests

To run the test suite:

  1. From your cloned wom-php folder, install dependencies:
composer install
  1. Then run the tests:
php vendor/bin/phpunit --testdox

Or run a specific test: php vendor/bin/phpunit --filter testCanFetchPlayerDetails

Feel free to add tests when contributing new features or fixes!

License

wom-php is licensed under the MIT License.

xgerhard/wom-php 适用场景与选型建议

xgerhard/wom-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 04 月 16 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 xgerhard/wom-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 xgerhard/wom-php 我们能提供哪些服务?
定制开发 / 二次开发

基于 xgerhard/wom-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 22
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-04-16