Skip to content

seansch/Rapnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rapnet Price SOAP Wrapper

Installation

First, pull in the package through Composer.

"require": {
    "seansch/rapnet": "dev-master"
}

And then, if using Laravel 5, include the service provider within app/config/app.php.

'providers' => [
    'Seansch\Rapnet\RapnetServiceProvider'
];

And, for convenience, add a facade alias to this same file at the bottom:

'aliases' => [
    'Rapnet' => 'Seansch\Rapnet\RapnetFacade'
];

Publish the config file app/config/rapnet.php and edit with your details

php artisan vendor:publish

Usage

Rapnet::setDiamondParams(
    $request->input('diamond_shape'),
    $request->input('carat_weight'),
    $request->input('diamond_color'),
    $request->input('estimated_clarity')
);

$price = Rapnet::getPrice();

About

Rapnet price SOAP wrapper for Laravel 5

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages