goviafang / laravel-fraser
Getting school ranking data from Fraser Institute.
1.0.4
2017-03-17 20:33 UTC
Requires
- php: >=7.1.0
- illuminate/support: ~5.0
- weidner/goutte: 1.0.*
Requires (Dev)
- phpunit/phpunit: 6.0.*
This package is not auto-updated.
Last update: 2024-11-23 20:53:40 UTC
README
This repository using dweidner/laravel-goutte to provide a service in Laravel 5 for getting school ranking data from Fraser Institute.
Installing using Composer
$ 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
Usage
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 ); });