All Projects → gerbenjacobs → HabboAPI

gerbenjacobs / HabboAPI

Licence: MIT license
A PHP wrapper for the (undocumented) Habbo API

Programming Languages

PHP
23972 projects - #3 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to HabboAPI

Tanji
Habbo Packet Sniffer/Analyzer
Stars: ✭ 33 (-2.94%)
Mutual labels:  habbo, habbo-api
Artisan Gui
Simple but yet powerful library for running almost all artisan commands.
Stars: ✭ 226 (+564.71%)
Mutual labels:  packagist
Kontent Delivery Sdk Php
Kentico Kontent Delivery SDK for PHP
Stars: ✭ 41 (+20.59%)
Mutual labels:  packagist
Tissue
Create Github issues from your code's Exceptions
Stars: ✭ 116 (+241.18%)
Mutual labels:  packagist
Semver
Semver checker for Packagist
Stars: ✭ 73 (+114.71%)
Mutual labels:  packagist
Laravel Paket
Composer GUI. Manage Laravel dependencies from web interface without switching to command line!
Stars: ✭ 143 (+320.59%)
Mutual labels:  packagist
Packagist Mirror
Creates Packagist.org mirror site.
Stars: ✭ 32 (-5.88%)
Mutual labels:  packagist
yavdb
Yet Another Vulnerability Database
Stars: ✭ 14 (-58.82%)
Mutual labels:  packagist
Private Composer Installer
Composer install helper outsourcing sensitive keys from the package URL into environment variables
Stars: ✭ 168 (+394.12%)
Mutual labels:  packagist
Packeton
📦 Private, self-hosted Packagist/Composer/Satis repository with unlimited private repos.
Stars: ✭ 115 (+238.24%)
Mutual labels:  packagist
Packagist
Package Repository Website - try https://packagist.com if you need your own -
Stars: ✭ 1,529 (+4397.06%)
Mutual labels:  packagist
Packagist Api
The easiest way to work with the packagist API
Stars: ✭ 90 (+164.71%)
Mutual labels:  packagist
Ansible Role Composer
Ansible Role - Composer PHP Dependency Manager
Stars: ✭ 149 (+338.24%)
Mutual labels:  packagist
Packagist Mirror
Alibaba Cloud Packagist Mirror
Stars: ✭ 63 (+85.29%)
Mutual labels:  packagist
Asset Packagist
Asset Packagist
Stars: ✭ 235 (+591.18%)
Mutual labels:  packagist
Str Helper
⚡️ A flexible & powerful string manipulation helper for PHP | using pipe method chaining
Stars: ✭ 40 (+17.65%)
Mutual labels:  packagist
Satis Server
🐳 Private, self-hosted Composer/Satis repository with unlimited private and open-source packages and support for Git, Mercurial, and Subversion. HTTP API, HTTPs support, webhook handler, scheduled builds, Slack and HipChat integration.
Stars: ✭ 96 (+182.35%)
Mutual labels:  packagist
Security Advisories
A database of PHP security advisories
Stars: ✭ 1,740 (+5017.65%)
Mutual labels:  packagist
artisan-gui
Simple but yet powerful library for running almost all artisan commands.
Stars: ✭ 334 (+882.35%)
Mutual labels:  packagist
Satis
Simple static Composer repository generator - For a full private Composer repo use Private Packagist
Stars: ✭ 2,722 (+7905.88%)
Mutual labels:  packagist

Build status Latest Stable Version Join the chat at https://gitter.im/gerbenjacobs/HabboAPI

HabboAPI

This PHP wrapper library is used to collect data from the undocumented Habbo API.
The project requires PHP 7.3 or higher and uses the Composer autoloader and PSR-4 standard.

See the example.php file on how you could use this library.

How to use it

  1. Add the Composer package to your project by running composer require gerbenjacobs/habbo-api
  2. On the page you want to use it add include 'vendor/autoload.php'
  3. Create a HabboParser and construct it with the Habbo domain extension "com", "com.br", "de" etc.
  4. 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 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 Habbo entity; 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, HabboNotFoundException and UserInvalidException
  • March 17th, 2016 - v2.1.1 - Add/fix support for id and uniqueId in 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 HabboAPI directory 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

  1. Clone the project
  2. Run composer install
  3. Verify the install by running ./vendor/bin/phpunit or opening the example.php page on a PHP server
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].