Download the PHP package earnould/laravel-velo-api without Composer
On this page you can find all versions of the php package earnould/laravel-velo-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download earnould/laravel-velo-api
More information about earnould/laravel-velo-api
Files in earnould/laravel-velo-api
Package laravel-velo-api
Short Description laravel-velo-api is a package that allows you to connect to the Velo Antwerp API. The Velo Antwerp API is..
License MIT
Informations about the package laravel-velo-api
Pull Velo API resources in your Laravel app
NOTE
You will need to request a client_id
and a client_secret
at velo-antwerpen.be to actually use this package.
Installation
You can install the package via composer:
The package will automatically register itself.
You'll need to publish the config file with:
This allows you to define the client id and secret in your .env file like this:
This package allows you to connect to the Velo Antwerp API. For now there are only two sources available stations
and stationsStatuses
. The stations resource speaks for itself. The stationsStatuses resource returns the availability of all stations. The API requires a client_id and client_secret to fetch these results.
A quick overview:
You can retrieve all Velo station resources using the Earnould\LaravelVeloApi\Facades\VeloStations
facade.
Retrieves all Velo stations in Antwerp
Returns:
Requests all Velo stations with their corresponding status
Returns:
NOTE: The status will be OPN
for open stations and CLS
for Closed stations.
Documentation
Any bugs? Any suggestions or question? Shoot an issue on GitHub and let's have a look.
If you've found a security issue please mail contact@evertarnould.be instead of using the issue tracker.
Changelog
Please see CHANGELOG for more information about recent changes.
Testing
Security
If you discover any security related issues, please email contact@evertarnould.be instead of using the issue tracker.
Credits
- Evert Arnould
- All Contributors
License
The MIT License (MIT). Please see License File for more information.