A PHP wrapper for the (undocumented) Habbo API
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.
composer require gerbenjacobs/habbo-api
include 'vendor/autoload.php'
<?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);
Habbo
entity; online, lastAccessTime, currentLevel, currentLevelCompleted, totalExperience, starGemCountgetGroupId()
to Room entities, but only if that data existsgetAchievements()
to API, returns a list of a Habbos achievements including current level and scoreMaintenanceException
, HabboNotFoundException
and UserInvalidException
id
and uniqueId
in Room objectsHabboAPI
directory for idiomatic packagist standards.composer install
vendor/bin/phpunit
or opening the example.php
page on a PHP server