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

🎉 A simple Laravel 5 wrapper around IBM Watson Tradeoff Analytics API

License

Notifications You must be signed in to change notification settings

findbrok/laravel-tradeoff-analytics

Repository files navigation

Laravel 5 Tradeoff Analytics

Latest Stable Version Latest Unstable Version Build Status StyleCI License Total Downloads

Introduction

Laravel 5 Tradeoff Analytics is a simple Laravel 5 wrapper around IBM Watson Tradeoff Analytics API

License

Laravel 5 Tradeoff Analytics is open-sourced software licensed under the MIT license.

How it works

Tradeoff Analytics is a Watson service that helps people make decisions when balancing multiple objectives. The service uses a mathematical filtering technique called “Pareto Optimization,” that enables users to explore tradeoffs when considering multiple criteria for a single decision.

Intended Use

Tradeoff Analytics can help bank analysts or wealth managers select the best investment strategy based on performance attributes, risk, and cost. It can help consumers purchase the product that best matches their preferences based on attributes like features, price, or warranties. Additionally, Tradeoff Analytics can help physicians find the most suitable treatment based on multiple criteria such as success rate, effectiveness, or adverse effects.

Installation

Install the package through composer

$ composer require findbrok/laravel-tradeoff-analytics

Depending on your Laravel version you will install one of the following versions of Tradeoff Analytics.

Laravel Tradeoff Analytics
5.0.x - 5.3.x 0.1.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:

'providers' => [
    // Other Service Providers...
    FindBrok\WatsonBridge\WatsonBridgeServiceProvider::class,
    FindBrok\TradeoffAnalytics\TradeoffAnalyticsServiceProvider::class,
]

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

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

$ php artisan vendor:publish --tag="watson-api-bridge"
$ php artisan vendor:publish --tag="watson-tradeoff-analytics"

This will create the files config/watson-bridge.php and config/tradeoff-analytics.php respectively.

Usage

Read the docs

Credits

Big Thanks to all developers who worked hard to create something amazing!

Creator

Percy Mamedy

Twitter: @PercyMamedy
GitHub: percymamedy