PHPackages                             third-rail-packages/schedule-validity - 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. third-rail-packages/schedule-validity

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

third-rail-packages/schedule-validity
=====================================

Determine which Network Rail schedule applies for a date

v1.0(5y ago)01.0k[1 PRs](https://github.com/thirdrailuk/schedule-validity/pulls)MITPHPPHP ^7.2

Since Jul 17Pushed 2y agoCompare

[ Source](https://github.com/thirdrailuk/schedule-validity)[ Packagist](https://packagist.org/packages/third-rail-packages/schedule-validity)[ RSS](/packages/third-rail-packages-schedule-validity/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (3)Used By (0)

The Third Rail - Schedule Validity
==================================

[](#the-third-rail---schedule-validity)

[![CI](https://github.com/third-rail-packages/schedule-validity/workflows/CI/badge.svg)](https://github.com/third-rail-packages/schedule-validity/workflows/CI/badge.svg)

BDD Scenarios to determine which Network Rail Schedule or Association UID is applicable on a given date.

Installation
------------

[](#installation)

### via Composer

[](#via-composer)

Install [Composer](https://getcomposer.org/doc/00-intro.md) and require the package with the below command.

```
composer.phar require third-rail-packages/schedule-validity
```

Getting Started
---------------

[](#getting-started)

The intended purpose of this packages is to document with examples how Network Rail Schedule or Associations should be selected for a given date.

The package can be consumed as part of a project by implementing the `\ThirdRailPackages\ScheduleValidity\Schedule` interface. See the `examples` directory for a very basic implementation.

Development
-----------

[](#development)

The development environment and dependencies are managed with [Docker](https://www.docker.com/get-started). In the same directory as the checked out cloned repository, run the below command to start the Docker Compose environment.

```
docker-compose up -d --build
```

Login to the `console` container begin development.

```
docker-compose run --rm console sh

```

Install the [Composer](https://getcomposer.org/) dependencies and execute the test suite.

```
composer.phar install
composer.phar ci

```

Authors
-------

[](#authors)

- **Ben McManus** - [bennoislost](https://github.com/bennoislost)

See also the list of [contributors](https://github.com/third-rail-packages/data-feeds-queue-subscriber/contributors) who participated in this project

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

Acknowledgments
---------------

[](#acknowledgments)

-
-

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

2130d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8047af179450f635c711dac4045c51052d07104e7dc0b2a189613ef036814e04?d=identicon)[the-third-rail](/maintainers/the-third-rail)

---

Top Contributors

[![bennoislost](https://avatars.githubusercontent.com/u/1015154?v=4)](https://github.com/bennoislost "bennoislost (2 commits)")

###  Code Quality

TestsBehat

Static AnalysisPHPStan, Psalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/third-rail-packages-schedule-validity/health.svg)

```
[![Health](https://phpackages.com/badges/third-rail-packages-schedule-validity/health.svg)](https://phpackages.com/packages/third-rail-packages-schedule-validity)
```

###  Alternatives

[magento/magento-composer-installer

Composer installer for Magento modules

7523.3M318](/packages/magento-magento-composer-installer)

PHPackages © 2026

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