PHPackages                             calcinai/siri - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. calcinai/siri

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

calcinai/siri
=============

Service Interface for Real Time Information SDK

v1.0.1(6y ago)115PHP

Since Jul 19Pushed 6y agoCompare

[ Source](https://github.com/calcinai/siri)[ Packagist](https://packagist.org/packages/calcinai/siri)[ RSS](/packages/calcinai-siri/feed)WikiDiscussions master Synced 2mo ago

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

Siri
====

[](#siri)

This project is almost entirely generated from the [Siri](https://en.wikipedia.org/wiki/Service_Interface_for_Real_Time_Information) xsd shchemas found [here](http://user47094.vs.easily.co.uk/siri/schema/schemas.htm)

The generated XML can then be posted using a HTTP client (like [Guzzle](http://docs.guzzlephp.org))

Instalation
-----------

[](#instalation)

With composer:

```
composer require calcinai/siri

```

Example
-------

[](#example)

### Serialization

[](#serialization)

```
use Calcinai\Siri\Objects\Siri;
use Calcinai\Siri\Objects\ServiceRequest;
use Calcinai\Siri\Objects\VehicleMonitoringRequest;
use Calcinai\Siri\Serializer

$requestTimestamp = new DateTime();

$siri = new Siri();
$request = new ServiceRequest();
$vmRequest = new VehicleMonitoringRequest();

$siri->setVersion(1.3)
    ->setServiceRequest($request);

$vmRequest->setVersion(1.3)
    ->setVehicleRef('3706')
    ->setRequestTimestamp($requestTimestamp);

$request->setVehicleMonitoringRequest($vmRequest)
    ->setRequestTimestamp($requestTimestamp)
    ->setRequestorRef('Requestor');

$serializer = new Serializer();
$xml = $serializer->serialize($siri);

echo $xml;
```

Will produce XML like

```

    2019-07-18T23:08:07+00:00
    Requestor

      2019-07-18T23:08:07+00:00
      3706

```

### Deserialization

[](#deserialization)

The xml above can be deserialized to recreate the object structure

```
$siri = $serializer->deserialize($xml);

print_r($siri); //The root siri object
```

Acknowlegments
--------------

[](#acknowlegments)

This code is almost completely generated from [xsd2php](https://github.com/goetas-webservices/xsd2php), thanks [@goetas-webservices](https://github.com/goetas-webservices)!

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Total

2

Last Release

2485d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2415868?v=4)[Michael Calcinai](/maintainers/calcinai)[@calcinai](https://github.com/calcinai)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/calcinai-siri/health.svg)

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

###  Alternatives

[bertptrs/phpstreams

A streams library for PHP based on the Java 8 Streams API.

883.2k](/packages/bertptrs-phpstreams)[cheprasov/php-parallel

The class allows you to run multiple operations parallel in different processes and send results to the main process. Useful if you need to run multiple independent operations simultaneously, instead of sequential execution, or if you run several independent queries, for example, queries to different data bases

1712.5k5](/packages/cheprasov-php-parallel)

PHPackages © 2026

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