PHPackages                             mramsden/tefel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. mramsden/tefel

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

mramsden/tefel
==============

Parses the station facilities feed from TFL to create a list of stations, with their location and the lines serving them.

0.1.1(11y ago)1116[4 issues](https://github.com/mramsden/tefel/issues)MITPHPPHP &gt;=5.5.0

Since Sep 19Pushed 11y agoCompare

[ Source](https://github.com/mramsden/tefel)[ Packagist](https://packagist.org/packages/mramsden/tefel)[ RSS](/packages/mramsden-tefel/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

tefel
=====

[](#tefel)

[![Circle CI](https://camo.githubusercontent.com/bd1da94ae7b7dcc9b86513c848d8e69349826f1339662e4abd97dfc3d1aa274e/68747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f70726f6a6563742f6d72616d7364656e2f746566656c2e737667)](https://circleci.com/gh/mramsden/tefel/tree/master)[![Code Climate](https://camo.githubusercontent.com/3d75a4f4e6e6b40fcbc3b5d6b11d297ded770e28633f6a220e6763883f40d080/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6d72616d7364656e2f746566656c2f6261646765732f6770612e737667)](https://codeclimate.com/github/mramsden/tefel)[![Test Coverage](https://camo.githubusercontent.com/0420d454977eb18a9d2dea16d6fe80835cd55b33e3c56b9e05f10faed091e7fe/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6d72616d7364656e2f746566656c2f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/mramsden/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 .

Usage
=====

[](#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
-------------

[](#plain-ol-php)

```
$tefel = new Tefel($stationFacilitiesFeedUrl, $appId, $appKey);
/** @var $stations Tefel\Feed\Station[] */
$stations = $tefel->getStations();
```

Laravel 4
---------

[](#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;

namedescriptionstations\_feed\_urlThe URL to download the station facilities feed from.app\_idThe app id issued to you by TFL.app\_keyThe 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
=======

[](#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.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

2

Last Release

4255d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/58f1e11cc509769839cbf2e23ff555905b0eecef9955c2d46af8df880c478dbb?d=identicon)[mramsden](/maintainers/mramsden)

---

Tags

laraveldatafeedlondonunderground

### Embed Badge

![Health badge](/badges/mramsden-tefel/health.svg)

```
[![Health](https://phpackages.com/badges/mramsden-tefel/health.svg)](https://phpackages.com/packages/mramsden-tefel)
```

###  Alternatives

[sbsaga/toon

🧠 TOON for Laravel — a compact, human-readable, and token-efficient data format for AI prompts &amp; LLM contexts. Perfect for ChatGPT, Gemini, Claude, Mistral, and OpenAI integrations (JSON ⇄ TOON).

6115.6k](/packages/sbsaga-toon)[ultrono/laravel-sitemap

Sitemap generator for Laravel 11, 12 and 13

36412.6k6](/packages/ultrono-laravel-sitemap)[mischasigtermans/laravel-toon

Token-Optimized Object Notation encoder/decoder for Laravel with intelligent nested object handling

13113.1k](/packages/mischasigtermans-laravel-toon)[dniccum/nova-documentation

A Laravel Nova tool that allows you to add markdown-based documentation to your administrator's dashboard.

37116.4k](/packages/dniccum-nova-documentation)[torann/podcastfeed

Generate RSS feeds for podcasts in Laravel 5.

485.9k](/packages/torann-podcastfeed)[json-mapper/laravel-package

The JsonMapper package for Laravel

25170.4k3](/packages/json-mapper-laravel-package)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
