Download the PHP package omnitravel/navitia without Composer
On this page you can find all versions of the php package omnitravel/navitia. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download omnitravel/navitia
More information about omnitravel/navitia
Files in omnitravel/navitia
Package navitia
Short Description Omnitravel's Navitia, under any PHP host: a stop area's or a stop point's next departures and arrivals in real time, journeys from A to B, the stops near a point or by name, the lines of a coverage and their stops, its networks - from navitia.io or SNCF's api.sncf.com (the same API), with the key given by reference.
License MIT
Homepage https://github.com/glitchr-omnisense/omnitravel-navitia
Informations about the package navitia
omnitravel/navitia
omnisense/omnitravel's Navitia, under any PHP
host: the Navitia v1 API on one coverage - navitia.io's (fr-idf, fr-ne...)
or SNCF's (sncf at https://api.sncf.com/v1, the same API).
- a stop's departures and arrivals (
stop_areas/{id}/departures,stop_points/{id}/arrivals): the scheduled and the real-time time, the platform, the train's number, the line and its colours; - journeys from A to B (
journeys): walks, rides with their stops and path, transfers; - the network: a stop area, the stop areas near a point (
coords/{lon};{lat}/places_nearby) and by name (places), the coverage's lines page by page, a line's or a route's stop areas, the lines of a stop area, the networks as operators.
Install and a first call
No account for this first call: Navitia's answer is recorded (Omnitravel\Testing\RecordedHttpClient
answers in place of the API), so nothing leaves the process. A real call needs a token: a
navitia.io account, or SNCF's at api.sncf.com for the sncf coverage. Give it by reference
(an environment variable, a secrets vault), never in a file.
With your token, a station's next departures:
Options: token and coverage (required), base_uri (https://api.navitia.io/v1), timezone
(Europe/Paris), attribution, timeout; policy, usage (the family's).
Usage policy
policy.json declares what is known: a key, the credit to navitia.io (the
attribution option's text when given). Its rate limits and rights are unknown: navitia.io's
terms page (https://navitia.io/en/?p=1571) could not be read on 2026-11-10 (HTTP 403) and
api.sncf.com publishes no quota, so nothing is enforced but what a site sets itself - its plan's
quota, as 'policy' => ['rateLimits' => [['max' => 5000, 'window' => 'month']]]. A 429 and its
Retry-After are honoured all the same.
The manual: docs/index.md. MIT.
All versions of navitia with dependencies
omnisense/contracts Version ^1.0
omnisense/omnitravel Version ^1.0
symfony/http-client Version ^6.4|^7.0|^8.0