Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Art4 committed Apr 20, 2015
1 parent daae368 commit df580d5
Showing 1 changed file with 48 additions and 2 deletions.
50 changes: 48 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,48 @@
php-youthweb-api
================
# PHP Youthweb API

PHP Youthweb API ist ein objektorientierter Wrapper in PHP für die [Youthweb API](https://github.com/youthweb/youthweb-api).

API Version: [0.1](https://github.com/youthweb/youthweb-api/releases/tag/0.1)

## Installation

### Composer

_coming soon_

### Manuell

Dieser Library liegt ein kleiner Autoloader bei, der verwendet werden kann.

```php
<?php

require 'vendor/php-youthweb-api/src/autoload.php';

$client = new Youthweb\Api\Client();
```

Ansonsten funktioniert auch jeder andere [PSR-4](http://www.php-fig.org/psr/psr-4/) Autoloader.

## Benutzung

```php
<?php

require_once 'src/autoload.php';

$client = new \Youthweb\Api\Client();

$account = $client->getResource('account');

var_dump($account->stats());
```

Response:

```
array (size=2)
'user_total' => int 5727
'user_online' => int 39
```

0 comments on commit df580d5

Please sign in to comment.