All Projects → OpendataCH → Transport

OpendataCH / Transport

Licence: mit
Swiss public transport API

Labels

Projects that are alternatives of or similar to Transport

silex-starter-pack
A starter pack for beginning development with the Silex PHP framework. Includes a basic admin control panel, and user login system.
Stars: ✭ 12 (-94.42%)
Mutual labels:  silex
Silex Kitchen Edition
This project is a sample or a bootstrap silex application
Stars: ✭ 645 (+200%)
Mutual labels:  silex
Superleansilexplate
Silex Superlean Starter
Stars: ✭ 61 (-71.63%)
Mutual labels:  silex
ResponsibleServiceProvider
Silex service provider for seamless HTTP content negotiation
Stars: ✭ 35 (-83.72%)
Mutual labels:  silex
Bolt
Bolt is a simple CMS written in PHP. It is based on Silex and Symfony components, uses Twig and either SQLite, MySQL or PostgreSQL.
Stars: ✭ 4,136 (+1823.72%)
Mutual labels:  silex
Cache Service Provider
A Cache Service Provider for Silex, using the doctrine/cache package
Stars: ✭ 23 (-89.3%)
Mutual labels:  silex
sm-groupcheck-web
GroupCheck web API.
Stars: ✭ 14 (-93.49%)
Mutual labels:  silex
Php Getting Started
Getting Started with PHP on Heroku
Stars: ✭ 170 (-20.93%)
Mutual labels:  silex
Pinboard
Realtime PHP monitoring system which aggregates and displays Pinba data.
Stars: ✭ 479 (+122.79%)
Mutual labels:  silex
Silex
something to help you spark
Stars: ✭ 61 (-71.63%)
Mutual labels:  silex
silex-example
silex-example.pagodabox.com/
Stars: ✭ 13 (-93.95%)
Mutual labels:  silex
Silex
[DEPRECATED -- Use Symfony instead] The PHP micro-framework based on the Symfony Components
Stars: ✭ 3,646 (+1595.81%)
Mutual labels:  silex
Silexstarter
Starter app based on Silex framework with mvc and modular arch, scaffold generator, and admin panel
Stars: ✭ 11 (-94.88%)
Mutual labels:  silex
hello-world-app-php-silex
Hello World sample app in PHP and Silex
Stars: ✭ 23 (-89.3%)
Mutual labels:  silex
Crudlex
CRUDlex is an easy to use CRUD generator for Symfony 4 and Silex 2 which is great for auto generated admin pages
Stars: ✭ 102 (-52.56%)
Mutual labels:  silex
PHP-Frameworks-Bench
Popular PHP Frameworks Benchmark.
Stars: ✭ 28 (-86.98%)
Mutual labels:  silex
Silex Skeleton
A skeleton to get started with Silex
Stars: ✭ 805 (+274.42%)
Mutual labels:  silex
Silex Webprofiler
Stars: ✭ 207 (-3.72%)
Mutual labels:  silex
Payumserver
Payment processing microservice. Written in Symfony4
Stars: ✭ 103 (-52.09%)
Mutual labels:  silex
Silex
Silex is a static website builder in the cloud.
Stars: ✭ 958 (+345.58%)
Mutual labels:  silex

The backend of the Transport API changed on 31 July 2017. Read more on opendata.ch.

Transport API

Build

The Transport API allows interested developers to build their own applications using public timetable data, whether they're on the web, the desktop or mobile devices.

Feel free to fork this project implement your own ideas or send pull requests.

Installation

You can install the Transport API on your own server, however we recommend the usage of transport.opendata.ch.

$ git clone git://github.com/OpendataCH/Transport.git transport
$ cd transport
$ composer install

Also make sure, the directory transport/var/ is writable.

If you cloned the repository inside your document root, the API is now accessible at http://localhost/transport/web/api.php/v1/. However we recommend setting the document root to transport/web/ and using the provided .htaccess to route API requests to api.php.

Or you can start it with the PHP's built-in webserver (not recommended for a production setup, but the easy way to get started locally)

php -S localhost:8000

And then access it with http://localhost:8000/web/api.php

Configuration

To define your own configuration for the API copy the file config.php.sample to config.php and override the variables you want to change.

Statistics

You can get some basic statistics for the API by configuring a Redis server in your configuration ($redis) and have a look at http://localhost/transport/web/stats.php.

Development

XSD for the XML Fahrplan API is available here: hafasXMLInterface.xsd

Troubleshooting

Missing package php-xml

If you're running Ubuntu and composer install produces the error message

Your requirements could not be resolved to an installable set of packages.

you can try to install the package php-xml using the command

sudo apt install php-xml
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].