gerbenjacobs/habbo-api
Composer 安装命令:
composer require gerbenjacobs/habbo-api
包简介
A PHP wrapper for the (undocumented) Habbo Hotel API
关键字:
README 文档
README
HabboAPI
This PHP wrapper library is used to collect data from the undocumented Habbo API.
The project requires PHP 8.1 or higher and uses the Composer autoloader and PSR-4 standard.
Older versions for PHP 7.4 are available at Packagist.
See the example.php file on how you could use this library.
How to use it
- Add the Composer package to your project by running
composer require gerbenjacobs/habbo-api - On the page you want to use it add
include 'vendor/autoload.php' - Create a HabboParser and construct it with the Habbo domain extension "com", "com.br", "de" etc.
- Create a HabboAPI instance and inject the HabboParser in the constructor
Usage
<?php // Include the Composer autoloader include 'vendor/autoload.php'; // Shortcut for the FQN use HabboAPI\HabboAPI; use HabboAPI\HabboParser; // Create new Parser and API instance $habboParser = new HabboParser('com'); $habboApi = new HabboAPI($habboParser); // Find the user 'koeientemmer' and get their ID $koeientemmer = $habboApi->getHabbo('koeientemmer')->getId(); // Collect all the profile info $profile = $habboApi->getProfile($koeientemmer);
Changelog
- December 22th, 2024 v6.1.0 - Add support for PHP 8.4, loosened versioning for
nesbot/carbon - April 30th, 2023 v6.0.0 - Fully support PHP 8.1 and up
- December 29th, 2020 v5.0.0 - Add support for PHP 8 and drop support below PHP 7.3
- December 18th, 2020 v4.1.0 - Adds "sandbox" as hotel, includes new values for
Habboentity; online, lastAccessTime, currentLevel, currentLevelCompleted, totalExperience, starGemCount - March 30th, 2020 v4.0.0 - Use Carbon 2.0 and drop support for PHP below 7.1.8
- June 11th, 2018 v3.0.1 - Removed unused cookie logic
- May 25th, 2018 - v3.0.0 - Removed official support for PHP 5.4, updated dependencies, fixed warnings for PHP 7.1
- November 9th, 2017 - v2.4.0 - Added
getGroupId()to Room entities, but only if that data exists - February 1st, 2017 - v2.3.0 - Added
getAchievements()to API, returns a list of a Habbos achievements including current level and score - April 4th, 2016 - v2.2.0 - Added better exception handling, you can now catch
MaintenanceException,HabboNotFoundExceptionandUserInvalidException - March 17th, 2016 - v2.1.1 - Add/fix support for
idanduniqueIdin Room objects - February 25th, 2016 - v2.1.0 - Added getGroup and group member functionality
- February 10th, 2016 - v2.0.2 - Changed cookie for JS detection
- December 26th, 2015 - v2.0.1 - Fix for the cookie needed for Photos
- December 10th, 2015 - v2.0.0 - Added Photos to API and implemented a Profile entity (Release notes)
- December 4th, 2015 - v1.0.7 - Adds new attributes to Room entity
- November 30th, 2015 - v1.0.6 - Small fixes to Room entity and better exception handling.
- October 27th, 2015 - v1.0.5 - Allow parseHabbo() to use either Habboname or HHID. Also adds some stability to the Group entity
- October 25th, 2015 - v1.0.3 - Throws exception if Habbo API replies with error and removed the
HabboAPIdirectory for idiomatic packagist standards. - October 12th, 2015 - v1.0.2 - Removed server IP, upgraded PHPUnit and tests, expanded on example.php
- March 30th, 2015 - v1.0.1 - Added hasProfile and more stable example.php
- March 28th, 2015 - v1.0.0 - Created first tagged release, includes Travis CI and Packagist integration.
Developer Installation
- Clone the project
- Run
composer install - Verify the installation by running
vendor/bin/phpunitor opening theexample.phppage on a PHP server
gerbenjacobs/habbo-api 适用场景与选型建议
gerbenjacobs/habbo-api 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.67k 次下载、GitHub Stars 达 45, 最近一次更新时间为 2015 年 03 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「api」 「wrapper」 「habbo」 「habbowidgets」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 gerbenjacobs/habbo-api 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 gerbenjacobs/habbo-api 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 gerbenjacobs/habbo-api 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
LinkedIn API PHP SDK with OAuth 2.0 & CSRF support. Can be used for social sign in or sharing on LinkedIn. Examples. Documentation.
LinkedIn API PHP SDK with OAuth 2.0 & CSRF support. Can be used for social sign in or sharing on LinkedIn. Examples. Documentation.
A PSR-7 compatible library for making CRUD API endpoints
gv config package
A PHP (read-only) wrapper for the Git command line utility
Larafy is a Laravel API wrapper for Spotify.
统计信息
- 总下载量: 1.67k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 50
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-28