https://github.com/devjack/hipchat-php-sdk
A simple (WIP) PHP SDK for HipChat v2 API
https://github.com/devjack/hipchat-php-sdk
Last synced: 2 months ago
JSON representation
A simple (WIP) PHP SDK for HipChat v2 API
- Host: GitHub
- URL: https://github.com/devjack/hipchat-php-sdk
- Owner: devjack
- License: mit
- Created: 2015-06-21T03:58:55.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-21T05:06:42.000Z (almost 10 years ago)
- Last Synced: 2025-01-30T15:49:31.325Z (4 months ago)
- Language: PHP
- Homepage:
- Size: 117 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP HipChat SDK
HipChat SDK uses the v2 API and Guzzle-Services to make integration with HipChat a breeze.
## Installation
Add the SDK as a composer dependency.
```json
"require": {
"devjack/hipchat-php-sdk": "dev-master",
}
```Additionally (as required) add the repository for reference.
```json
"respository": [
{
"type": "vcs",
"url": "[email protected]:devjack/hipchat-php-sdk.git"
}
]
```## Usage
```php
use DevJack\HipChatSDK\HipChatClient;$client = new HipChatClient([
'token' => getenv('HIPCHAT_TOKEN'),
]);$room = $client->getRoomById( 12345 );
echo $room->getName();
```### Tests
```bash
HIPCHAT_TOKEN="myHipChatToken" vendor/bin/phpunit -c tests/config/phpunit.xml
```## Contributing
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D## Credits
[Jack Skinner](https://developerjack.com)
## License
The MIT License (MIT)
Copyright (c) 2015 [Jack Skinner](https://developerjack.com)