|
4 | 4 |
|
5 | 5 | An Easy-To-Use [ORTC](http://framework.realtime.co/messaging) API Client for Laravel Framework (Laravel 5.1.x)
|
6 | 6 |
|
| 7 | +**If you're using Laravel 4.2.x, please check [branch l4](https://github.com/nikapps/ortc-laravel/tree/l4)** |
| 8 | + |
7 | 9 | *This package is based on [nikapps/ortc-php](https://github.com/nikapps/ortc-php).*
|
8 | 10 |
|
9 | 11 | ## Installation
|
10 | 12 |
|
11 |
| -Simply add this [package](https://packagist.org/packages/nikapps/ortc-laravel) dependency to your Laravel's composer.json : |
12 |
| - |
13 |
| -~~~json |
14 |
| -{ |
15 |
| - "repositories": [ |
16 |
| - { |
17 |
| - "type": "package", |
18 |
| - "package": { |
19 |
| - "name": "rdarda/ortc-laravel", |
20 |
| - "version": "dev-master", |
21 |
| - "source": { |
22 |
| - "url": "https://github.com/rdarda/ortc-laravel.git", |
23 |
| - "type": "git", |
24 |
| - "reference": "master" |
25 |
| - }, |
26 |
| - "require": { |
27 |
| - "php": ">=5.4.0", |
28 |
| - "illuminate/support": "5.1.*", |
29 |
| - "nikapps/ortc-php": "1.*" |
30 |
| - }, |
31 |
| - "autoload": { |
32 |
| - "psr-0" : { |
33 |
| - "Nikapps\\OrtcLaravel\\": "src/" |
34 |
| - } |
35 |
| - } |
36 |
| - } |
37 |
| - } |
38 |
| - ] |
39 |
| - |
40 |
| -} |
41 |
| -~~~ |
42 |
| - |
43 |
| -Then update composer: |
| 13 | +You can install this [package](https://packagist.org/packages/nikapps/ortc-laravel) by simply run this composer command: |
44 | 14 |
|
45 | 15 | ```
|
46 |
| -composer update |
| 16 | +composer require nikapps/ortc-laravel |
47 | 17 | ```
|
48 | 18 |
|
49 |
| -- |
50 |
| - |
51 |
| -Add this package provider in your providers array `[app/config/app.php]`: |
| 19 | +Then, add this service provider in your providers array `[app/config/app.php]`: |
52 | 20 |
|
53 | 21 | ~~~php
|
54 | 22 | Nikapps\OrtcLaravel\OrtcLaravelServiceProvider::class,
|
55 | 23 | ~~~
|
56 | 24 |
|
57 |
| -And this Facade in your aliases array `[app/config/app.php]`: |
| 25 | +Then, add this Facade to your aliases array `[app/config/app.php]`: |
58 | 26 |
|
59 | 27 | ~~~php
|
60 | 28 | 'Ortc' => Nikapps\OrtcLaravel\Facades\Ortc::class
|
@@ -304,6 +272,12 @@ http://messaging-public.realtime.co/documentation/rest/2.1.0/RestServices.pdf
|
304 | 272 | * support presence channels
|
305 | 273 | * Anything else?!
|
306 | 274 |
|
| 275 | +## Credits |
| 276 | + |
| 277 | +* Thanks to realtime.co teams for their amazing platform |
| 278 | +* Thanks to [João Parreira](https://github.com/jparreira) for his php library |
| 279 | +* Thanks to [rdarda](https://github.com/rdarda) for sending the pull request to support Laravel 5.1 |
| 280 | + |
307 | 281 | ## Contribute
|
308 | 282 |
|
309 | 283 | Wanna contribute? simply fork this project and make a pull request!
|
|
0 commit comments