<commit_before># HabboAPI
This PHP wrapper library is used to collect data from the _unofficial_ Habbo.com Beta API.  
The project required PHP 5 and uses the Composer autoloader and PSR-4 standard.

See the `example.php` file on how to use this library at the moment.

## Installation
1. Download/git clone the project
2. Run `php composer.phar install`
3. On the page you want to use it add `include 'vendor/autoload.php'`
4. Create a HabboAPI instance with the namespace included `$habboAPI = new \HabboAPI\HabboAPI();` (Or have a look at the example.php page for the `use` statement)

## Usage
    <?php
    // Create new API instance
    $habboApi = new \HabboAPI\HabboAPI();
    
    // Find the user 'koeientemmer' and get their ID
    $koeientemmer = $habboApi->getHabbo('koeientemmer')->getId();
    
    // Collect all the profile info
    $profile = $habboApi->getProfile($koeientemmer);
<commit_msg>Added syntax highlighting<commit_after># HabboAPI
This PHP wrapper library is used to collect data from the _unofficial_ Habbo.com Beta API.  
The project required PHP 5 and uses the Composer autoloader and PSR-4 standard.

See the `example.php` file on how to use this library at the moment.

## Installation
1. Download/git clone the project
2. Run `php composer.phar install`
3. On the page you want to use it add `include 'vendor/autoload.php'`
4. Create a HabboAPI instance with the namespace included `$habboAPI = new \HabboAPI\HabboAPI();` (Or have a look at the example.php page for the `use` statement)

## Usage
```php
    <?php
    // Create new API instance
    $habboApi = new \HabboAPI\HabboAPI();
    
    // Find the user 'koeientemmer' and get their ID
    $koeientemmer = $habboApi->getHabbo('koeientemmer')->getId();
    
    // Collect all the profile info
    $profile = $habboApi->getProfile($koeientemmer);
```
{'fraction_non_alphanumeric': 0.09436008676789588, 'fraction_numerical': 0.006507592190889371, 'mean_word_length': 3.659090909090909, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3558988', 'n_tokens_mistral': 594, 'n_tokens_neox': 584, 'n_words': 235}