mramsden/tefel
Larablocks Analysis
mramsden/tefel works with Laravel 4 (latest release 0.1.1, Sep 21, 2014), which reached end of life: no more fixes, even for security.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 4, past end of life
- No release in the last 12 months (last: Sep 21, 2014)
- 0 downloads a month (needs 10,000)
- 1 GitHub star (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Sep 21, 2014.
- No releases in the last 12 months.
- First released: Sep 19, 2014.
- 4 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 25, 2026.
| Install | |
|---|---|
composer require mramsden/tefel |
|
| Latest Version: | 0.1.1 |
| PHP: | >=5.5.0 |
| Laravel: | 4 |
| License: | MIT |
| Last Updated: | Feb 7, 2015 |
| Links: | GitHub · Packagist |
tefel
A PHP package for parsing Transport for London (TFL) data feeds, includes support for Laravel 4.
Currently there is only support for extracting station facilities data and line information.
More information about the TFL Open Data feeds can be found at https://www.tfl.gov.uk/info-for/open-data-users/.
Usage
Note that for this library function you will have needed to obtain access to the TFL open data feeds and been given an app_id and app_key.
Plain ol' PHP
$tefel = new Tefel($stationFacilitiesFeedUrl, $appId, $appKey);
/** @var $stations Tefel\Feed\Station[] */
$stations = $tefel->getStations();
Laravel 4
To setup Tefel with Laravel 4 it's the usual setup process as with any package.
Add the following entries to your app/config/app.php;
'providers' => array(
// ...
'Tefel\TefelServiceProvider',
),
A facade is available for use in Laravel 4.
'aliases' => array(
// ...
'TFL' => 'Tefel\Facade\TefelFacade',
),
Usage is then more familiar for Laravel 4 users;
/** @var $stations Tefel\Feed\Station[] */
$stations = Tefel::getStations();
Configuration is available for the package in Laravel 4. You can publish the configuration to your application by running;
php artisan config:publish mramsden/tefel
The following configuration is available;
| name | description |
|---|---|
| stations_feed_url | The URL to download the station facilities feed from. |
| app_id | The app id issued to you by TFL. |
| app_key | The app key issued to you by TFL. |
Note that you don't need to change the app_id and app_key values in your own
configuration file. You can also assign these values through the TFL_APP_ID and
TFL_APP_KEY environment variables respectively.
License
The MIT License
Copyright (c) 2014 Marcus Ramsden.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Related Packages
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 0.1.1 | >=5.5.0 | 4.2.* | MIT | |
| 0.1.0 | >=5.5.0 | 4.2.* | MIT |