Package Data | |
---|---|
Maintainer Username: | seansch |
Maintainer Contact: | sean@loafbox.com (Sean Schoonover) |
Package Create Date: | 2015-05-22 |
Package Last Update: | 2016-04-05 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-28 15:02:20 |
Package Statistics | |
---|---|
Total Downloads: | 114 |
Monthly Downloads: | 3 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 2 |
Total Forks: | 2 |
Total Open Issues: | 0 |
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
Rapnet::setDiamondParams(
$request->input('diamond_shape'),
$request->input('carat_weight'),
$request->input('diamond_color'),
$request->input('estimated_clarity')
);
$price = Rapnet::getPrice();