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

Commit

Permalink
Merge pull request #7 from findbrok/master
Browse files Browse the repository at this point in the history
Refactoring composer.json and L5.5  prep works
  • Loading branch information
percymamedy authored Jun 7, 2017
2 parents 8a8e4b1 + 7418215 commit 06629c7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 16 deletions.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ versions of Tradeoff Analytics.
Laravel | Tradeoff Analytics
:---------------|:------------------
5.0.x - 5.3.x | 0.1.x
5.4.x | 0.2.x
5.4.x - 5.5.x | 0.2.x

> If you are using Laravel >= 5.5, you can skip service registration
> and aliases registration thanks to Laravel auto package discovery
> feature.
Add the ```WatsonBridgeServiceProvider``` and ```TradeoffAnalyticsServiceProvider``` to your providers array
in ```config/app.php```, see [Registering Providers](https://laravel.com/docs/master/providers#registering-providers):
Expand All @@ -62,6 +66,15 @@ in ```config/app.php```, see [Registering Providers](https://laravel.com/docs/ma
]
```

You can also add the following alias to you app.php file:

```php
'aliases' => [
...
'TradeoffAnalytics' => FindBrok\TradeoffAnalytics\Facades\TradeoffAnalytics::class,
]
```

### Configuration
Once installed you can now publish your config file and set your correct configuration for using the package:

Expand Down
29 changes: 14 additions & 15 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
{
"name": "findbrok/laravel-tradeoff-analytics",
"description": "A simple Laravel 5 Wrapper around IBM Watson Tradeoff Analytics API",
"keywords": [
"php",
"ibm",
"watson",
"api",
"tradeoff",
"analytics",
"laravel"
],
"keywords": ["php", "ibm", "watson", "api", "tradeoff", "analytics", "laravel"],
"license": "MIT",
"authors": [
{
Expand All @@ -20,15 +12,14 @@
"require": {
"php": ">=5.6.0",
"findbrok/php-watson-api-bridge": "1.1.*",
"laravel/framework": "~5.4",
"netresearch/jsonmapper": "^1.1",
"jstewmc/php-helpers": "^0.1.1"
"illuminate/support": "~5.4",
"jstewmc/php-helpers": "^0.1.1",
"netresearch/jsonmapper": "^1.1"
},
"require-dev": {
"mockery/mockery": "0.9.*",
"orchestra/testbench": "3.4.*",
"phpunit/phpunit": "~5.7",
"fzaninotto/faker": "1.6.*"
"phpunit/phpunit": "~5.7"
},
"autoload": {
"psr-4": {
Expand All @@ -45,7 +36,15 @@
},
"extra": {
"branch-alias": {
"dev-master": "0.2.x-dev"
"dev-master": "0.3.x-dev"
},
"laravel": {
"providers": [
"FindBrok\\TradeoffAnalytics\\TradeoffAnalyticsServiceProvider"
],
"aliases": {
"TradeoffAnalytics": "FindBrok\\TradeoffAnalytics\\Facades\\TradeoffAnalytics"
}
}
},
"minimum-stability": "dev",
Expand Down

0 comments on commit 06629c7

Please sign in to comment.