Skip to content

Commit b9dc709

Browse files
author
Roman Darda
committed
Merge branch 'master' of https://github.com/nikapps/ortc-laravel
2 parents e3274e0 + b38d8ea commit b9dc709

File tree

4 files changed

+14
-43
lines changed

4 files changed

+14
-43
lines changed

README.md

+12-38
Original file line numberDiff line numberDiff line change
@@ -4,57 +4,25 @@
44

55
An Easy-To-Use [ORTC](http://framework.realtime.co/messaging) API Client for Laravel Framework (Laravel 5.1.x)
66

7+
**If you're using Laravel 4.2.x, please check [branch l4](https://github.com/nikapps/ortc-laravel/tree/l4)**
8+
79
*This package is based on [nikapps/ortc-php](https://github.com/nikapps/ortc-php).*
810

911
## Installation
1012

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:
4414

4515
```
46-
composer update
16+
composer require nikapps/ortc-laravel
4717
```
4818

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]`:
5220

5321
~~~php
5422
Nikapps\OrtcLaravel\OrtcLaravelServiceProvider::class,
5523
~~~
5624

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]`:
5826

5927
~~~php
6028
'Ortc' => Nikapps\OrtcLaravel\Facades\Ortc::class
@@ -304,6 +272,12 @@ http://messaging-public.realtime.co/documentation/rest/2.1.0/RestServices.pdf
304272
* support presence channels
305273
* Anything else?!
306274

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+
307281
## Contribute
308282

309283
Wanna contribute? simply fork this project and make a pull request!

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727
}
2828
],
2929
"require": {
30-
"php": ">=5.4.0",
30+
"php": ">=5.5.9",
3131
"illuminate/support": "5.1.*",
3232
"nikapps/ortc-php": "1.*"
3333
},
3434
"autoload": {
35-
"psr-0": {
35+
"psr-4": {
3636
"Nikapps\\OrtcLaravel\\": "src/"
3737
}
3838
},

src/Nikapps/OrtcLaravel/OrtcLaravelFactory.php

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
class OrtcLaravelFactory
1212
{
13-
1413
/**
1514
* @var OrtcConfig
1615
*/

src/Nikapps/OrtcLaravel/OrtcLaravelServiceProvider.php

-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@
33
namespace Nikapps\OrtcLaravel;
44

55
use Nikapps\OrtcLaravel\Broadcasters\OrtcBroadcaster;
6-
76
use Illuminate\Support\ServiceProvider;
87

98
class OrtcLaravelServiceProvider extends ServiceProvider
109
{
11-
1210
/**
1311
* Indicates if loading of the provider is deferred.
1412
*

0 commit comments

Comments
 (0)