Releases: gerbenjacobs/HabboAPI
HabboAPI now available for PHP 8.1 and up
We've updated the Habbo API library to be compatible with PHP 8.1 and 8.2. We also run tests against the current nightly build, 8.3.
HabboAPI v2.0.0
Today we're releasing v2 of the HabboAPI.
The main additions are the use of the Profile entity that's now returned by the getProfile()
method and the getPhotos()
endpoint.
Profile entity
Under the hood it is still kind of the array that it used to be, but now it's a bit more stable and we can add methods to this complete entity. For example the getCounts()
method.
Photos
Because Photos are now are a big part of your profile and also the Community page of Habbo, it was about time they were handled by the API. This includes the new Photo entity.
Breaking changes
The way the HabboParser is constructed is now changed, you just give it the domain extension of the hotel; "com", "de", "com.br" etc. This was done in order to be able to construct new API endpoints such as the Photos one. It will also give us flexibility to add new API endpoints, no matter what the Habbo URL is going to be.
Carbon dating
No, not what they use to measure how old dinosaur bones are.. We added nesbot/Carbon to the project and use it for times/dates in Habbo, Room and Photo entities.
v1.0.2 Removed server IP and enhanced example.php
Decided to test the API now that Habbo.fr is also using the new version that includes the public API.
- I discovered the Server IP and cookie-hack weren't necessary anymore, so I removed those.
- Updated the Composer tools and a fresh copy of the API response, then fixed the unit tests.
- Enhanced the
example.php
file with a little bit of a Bootstrap layout.
Kinda forgot that I wasn't using 'v' in my versioning, so on Packagist this version (and others here forward) shall be of the following syntax: "vmajor.minor.release"
I can Haz Profile?
Added a vanity method hasProfile()
to the Habbo entity and updated the example.php
file to showcase how to display the data in case a Habbo has no profile
First release of the Habbo API
This is the first release of the Habbo API wrapper, recently added Travis CI and Packagist support to hopefully have a stable build.
This API uses the two public endpoints from Habbo to retrieve a simple Habbo object and also a full Profile object.