PHPackages                             filippo-toso/viaggia-treno - 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. [API Development](/categories/api)
4. /
5. filippo-toso/viaggia-treno

ActiveLibrary[API Development](/categories/api)

filippo-toso/viaggia-treno
==========================

Viaggia Treno (Trenitalia) Unofficial API client

v1.2.3(3y ago)063MITPHPPHP ^5.6 || ^7.0 || ^8.0

Since Oct 13Pushed 3y agoCompare

[ Source](https://github.com/filippotoso/viaggia-treno)[ Packagist](https://packagist.org/packages/filippo-toso/viaggia-treno)[ RSS](/packages/filippo-toso-viaggia-treno/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (2)Versions (12)Used By (0)

Viaggia Treno (Trenitalia) Unofficial API Client
================================================

[](#viaggia-treno-trenitalia-unofficial-api-client)

A simple client for viaggiatreno.it unofficial API.

Requirements
------------

[](#requirements)

- PHP 5.6+
- guzzlehttp/guzzle 6.2+
- nesbot/carbon ^1.22+

Installing
----------

[](#installing)

Use Composer to install it:

```
composer require filippo-toso/viaggia-treno

```

Using It
--------

[](#using-it)

```
use FilippoToso\ViaggiaTrenoAPI\Client as ViaggiaTreno;

// Create the client
$client = new ViaggiaTreno();

// Get the starting station and other details
$results = $client->cercaNumeroTrenoTrenoAutocomplete('8526');
var_dump($results);

// Get the current train status
$results = $client->andamentoTreno('S08409', '8526');
var_dump($results);

// Get the trian stops details
$results = $client->tratteCanvas('S08409', '8526');
var_dump($results);

// Get the station departures at specified time
$results = $client->partenze('S08409', '2017-10-13 21:43:00');
var_dump($results);

```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~192 days

Recently: every ~338 days

Total

11

Last Release

1258d ago

PHP version history (2 changes)v1.0.0PHP ^5.6 || ^7.0

v1.2.2PHP ^5.6 || ^7.0 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/55d89f2d44fb12225de2119994028ee69e36770bcf33c2b1ddf0d6672d28151b?d=identicon)[filippo.toso](/maintainers/filippo.toso)

---

Top Contributors

[![filippotoso](https://avatars.githubusercontent.com/u/26958813?v=4)](https://github.com/filippotoso "filippotoso (11 commits)")

### Embed Badge

![Health badge](/badges/filippo-toso-viaggia-treno/health.svg)

```
[![Health](https://phpackages.com/badges/filippo-toso-viaggia-treno/health.svg)](https://phpackages.com/packages/filippo-toso-viaggia-treno)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k532.1M19.4k](/packages/laravel-framework)[statamic/cms

The Statamic CMS Core Package

4.8k3.5M920](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[smodav/mpesa

M-Pesa API implementation

16167.1k1](/packages/smodav-mpesa)[imdhemy/google-play-billing

Google Play Billing

491.4M5](/packages/imdhemy-google-play-billing)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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