Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit 06629c7

Browse files
authored
Merge pull request #7 from findbrok/master
Refactoring composer.json and L5.5 prep works
2 parents 8a8e4b1 + 7418215 commit 06629c7

File tree

2 files changed

+28
-16
lines changed

2 files changed

+28
-16
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ versions of Tradeoff Analytics.
4949
Laravel | Tradeoff Analytics
5050
:---------------|:------------------
5151
5.0.x - 5.3.x | 0.1.x
52-
5.4.x | 0.2.x
52+
5.4.x - 5.5.x | 0.2.x
53+
54+
> If you are using Laravel >= 5.5, you can skip service registration
55+
> and aliases registration thanks to Laravel auto package discovery
56+
> feature.
5357
5458
Add the ```WatsonBridgeServiceProvider``` and ```TradeoffAnalyticsServiceProvider``` to your providers array
5559
in ```config/app.php```, see [Registering Providers](https://laravel.com/docs/master/providers#registering-providers):
@@ -62,6 +66,15 @@ in ```config/app.php```, see [Registering Providers](https://laravel.com/docs/ma
6266
]
6367
```
6468

69+
You can also add the following alias to you app.php file:
70+
71+
```php
72+
'aliases' => [
73+
...
74+
'TradeoffAnalytics' => FindBrok\TradeoffAnalytics\Facades\TradeoffAnalytics::class,
75+
]
76+
```
77+
6578
### Configuration
6679
Once installed you can now publish your config file and set your correct configuration for using the package:
6780

composer.json

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
{
22
"name": "findbrok/laravel-tradeoff-analytics",
33
"description": "A simple Laravel 5 Wrapper around IBM Watson Tradeoff Analytics API",
4-
"keywords": [
5-
"php",
6-
"ibm",
7-
"watson",
8-
"api",
9-
"tradeoff",
10-
"analytics",
11-
"laravel"
12-
],
4+
"keywords": ["php", "ibm", "watson", "api", "tradeoff", "analytics", "laravel"],
135
"license": "MIT",
146
"authors": [
157
{
@@ -20,15 +12,14 @@
2012
"require": {
2113
"php": ">=5.6.0",
2214
"findbrok/php-watson-api-bridge": "1.1.*",
23-
"laravel/framework": "~5.4",
24-
"netresearch/jsonmapper": "^1.1",
25-
"jstewmc/php-helpers": "^0.1.1"
15+
"illuminate/support": "~5.4",
16+
"jstewmc/php-helpers": "^0.1.1",
17+
"netresearch/jsonmapper": "^1.1"
2618
},
2719
"require-dev": {
2820
"mockery/mockery": "0.9.*",
2921
"orchestra/testbench": "3.4.*",
30-
"phpunit/phpunit": "~5.7",
31-
"fzaninotto/faker": "1.6.*"
22+
"phpunit/phpunit": "~5.7"
3223
},
3324
"autoload": {
3425
"psr-4": {
@@ -45,7 +36,15 @@
4536
},
4637
"extra": {
4738
"branch-alias": {
48-
"dev-master": "0.2.x-dev"
39+
"dev-master": "0.3.x-dev"
40+
},
41+
"laravel": {
42+
"providers": [
43+
"FindBrok\\TradeoffAnalytics\\TradeoffAnalyticsServiceProvider"
44+
],
45+
"aliases": {
46+
"TradeoffAnalytics": "FindBrok\\TradeoffAnalytics\\Facades\\TradeoffAnalytics"
47+
}
4948
}
5049
},
5150
"minimum-stability": "dev",

0 commit comments

Comments
 (0)