Package Data | |
---|---|
Maintainer Username: | goviafang |
Maintainer Contact: | goatnoble@gmail.com (Govia Fang) |
Package Create Date: | 2017-03-15 |
Package Last Update: | 2017-03-17 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-19 03:12:22 |
Package Statistics | |
---|---|
Total Downloads: | 6 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
This repository using dweidner/laravel-goutte to provide a service in Laravel 5 for getting school ranking data from Fraser Institute.
$ composer require goviafang/laravel-fraser
Add the service provider to your config/app.php file:
// config/app.php
return [
// ...
'providers' => [
// ...
Weidner\Goutte\GoutteServiceProvider::class,
Govia\Fraser\FraserServiceProvider::class,
],
'aliase' => [
// ...
'Goutte' => Weidner\Goutte\GoutteFacade::class,
],
],
Publish fraser.php to your config:
php artisan vendor:publish --tag=fraser
Route::get('fraser', function (\Govia\Fraser\Fraser $fraser) {
$records = $fraser->setProvince('on')
->setGrade('elementary')
->getList();
$detail = $fraser->getDetail($records->first()->link);
dd(
$records->first(),
$detail
);
});