2017 © Pedro Peláez
 

library gitter-api

PHP package for interaction with Gitter REST API.

image

rhincodon/gitter-api

PHP package for interaction with Gitter REST API.

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

PHP Gitter API

PHP package for interaction with Gitter REST API., (*1)

Latest Version on Packagist Software License Build Status Total Downloads, (*2)

Install

Via Composer, (*3)

``` bash $ composer require rhincodon/gitter-api, (*4)


## Usage ``` php // Get new gitter instance $gitter = new GitterApi($token); // You can change token $gitter->setToken($token); // List of rooms for current user $rooms = $gitter->rooms(); // Get room or join $room = $gitter->room($roomId|$roomUrl); // List of room users $roomUsers = $room->users(); // List of room channels $roomChannels = $room->channels(); // List of room messages $roomMessages = $room->messages()->skip(10)->take(5)->before($messageId|$message)->after($messageId|$message)->get(); // Send message to the room $message = $room->sendMessage($text); // Update sent message $message->update($text); // Get message author $messageAuthor = $message->author(); // Get message mentioned users $messageMentions = $message->mentions(); // Get current user $currentUser = $gitter->currentUser(); // Current user resources $userRooms = $currentUser->rooms(); $userOrgs = $currentUser->organizations(); $userRepos = $currentUser->repositories(); $userChannels = $currentUser->channels();

Contributing

Please see CONTRIBUTING for details., (*5)

Testing

Set up gitter token in .env file and run:, (*6)

bash $ composer test, (*7)

License

The MIT License (MIT). Please see License File for more information., (*8)

The Versions

21/09 2015

dev-master

9999999-dev https://github.com/rhincodon/gitter-api

PHP package for interaction with Gitter REST API.

  Sources   Download

MIT

The Requires

 

The Development Requires

api rest gitter

21/09 2015

dev-develop

dev-develop https://github.com/rhincodon/gitter-api

PHP package for interaction with Gitter REST API.

  Sources   Download

MIT

The Requires

 

The Development Requires

api rest gitter

21/09 2015

1.0.2

1.0.2.0 https://github.com/rhincodon/gitter-api

PHP package for interaction with Gitter REST API.

  Sources   Download

MIT

The Requires

 

The Development Requires

api rest gitter

21/09 2015

1.0.1

1.0.1.0 https://github.com/rhincodon/gitter-api

PHP package for interaction with Gitter REST API.

  Sources   Download

MIT

The Requires

 

The Development Requires

api rest gitter

21/09 2015

1.0.0

1.0.0.0 https://github.com/rhincodon/gitter-api

PHP package for interaction with Gitter REST API.

  Sources   Download

MIT

The Requires

 

The Development Requires

api rest gitter