third-rail-packages / schedule-validity
Determine which Network Rail schedule applies for a date
Installs: 1 047
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 1
Requires
- php: ^7.2
Requires (Dev)
- behat/behat: ^3.6
- phpspec/phpspec: ^6.1
- phpstan/phpstan: ^0.12.25
- squizlabs/php_codesniffer: ^3.5
- vimeo/psalm: ^3.11
- webmozart/assert: ^1.8
This package is auto-updated.
Last update: 2024-10-23 12:41:07 UTC
README
BDD Scenarios to determine which Network Rail Schedule or Association UID is applicable on a given date.
Installation
via Composer
Install Composer and require the package with the below command.
composer.phar require third-rail-packages/schedule-validity
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
The development environment and dependencies are managed with Docker. 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 dependencies and execute the test suite.
composer.phar install
composer.phar ci
Authors
- Ben McManus - bennoislost
See also the list of contributors who participated in this project
License
This project is licensed under the MIT License - see the LICENSE.md file for details