Skip to content
iRail API / scraper
PHP XSLT Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
api
includes
src
storage
tests
.gitignore
CONTRIBUTING.md
LICENSE.md
README.md
composer.json
composer.lock
phpunit.xml
robots.txt

README.md

iRail

License AGPL-3.0 Join the chat at https://gitter.im/iRail/iRail

iRail supports digital creativity concerning mobility in Belgium. This is an attempt to make the railway time schedules in Belgium easily available for anyone.

Our main site consists of a very easy mobile website to look up time schedules using our own API.

Native applications using the iRail API and created or supported by the iRail team are named BeTrains and RailerApp.

All information can be found on our blog at hello.iRail.be.

Installation for development purposes

note: you'll also need to have nodejs, composer and PHP curl extension installed on your system

  • Step 1: clone this repo
  • Step 2: composer install
  • Step 3: make sure storage is writable: chmod 777 storage
  • Step 4: Run your test server: php -S localhost:8008 -t api
  • Step 5: Enjoy your own iRail API at http://localhost:8008/connections.php?from=Gent%20Sint%20Pieters&to=Antwerp

Update stations list

Stations are updated through the irail/stations composer package. Just perform a composer update in the root of the project

More links

Something went wrong with that request. Please try again.