etienneq / star-trek-timeline
A Star Trek timeline covering all media (TV, cinema, streaming, novels, comics) written in PHP.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:HTML
Requires
- php: 7.2.*
- etienneq/stardate-calculator: dev-master
- league/csv: ^9.0
Requires (Dev)
- phpunit/phpunit: ^7.4
This package is auto-updated.
Last update: 2025-06-24 22:03:17 UTC
README
A Star Trek fiction timeline covering all media (TV, cinema, novels, comics), written in PHP.
At the moment this is still a prototype.
When finished this library aims to provide a timeline for all published Star Trek.
Episodes, novels etc. are organized in CSV files. This files are devided in a human readable fashion (e.g. by media or series) to be easily manageable and updateable.
This library automatically sorts all entries chronologically as excactly as possible using a number of criteria (given stardate, publication date, episode number etc.). If needed entries can be placed manually at a certain place on the timeline.
An API is provided that returns the timeline in an object-oriented fashion. It's planned to add the possibility to filter timeline entries by year, series etc.
Current status of prototype
At the moment the data is not yet complete. But it's enough to demonstrate the intended potential. Take a look here.
I'm planning to launch a website which utilizes this library to make the timeline accessible for all internet users in a dynamic fashion.
Prerequisites
Star Trek Timeline requires PHP >= 7.2.
Installation
Use Composer to install this package:
composer require etienneq/star-trek-timeline
Data structure
Data files are located in the resources directory. There are two types of files: Items files (*.csv) which contain all the episodes, books etc. and meta data (*.ini) files which give additional information about a particular series or season.
Data sources
Besides my own notes the following sources were used for creating the data files.
TV series
- Star Trek: memory-alpha.wikia.com
- Star Trek: The Animated Series: memory-alpha.wikia.com
- Star Trek: The Next Generation: memory-alpha.wikia.com
- Star Trek: Deep Space Nine: memory-alpha.wikia.com
- Star Trek: Voyager: memory-alpha.wikia.com
- Star Trek: Enterprise: memory-alpha.wikia.com
- Star Trek: Discovery: startreklitverse.yolasite.com
Movies
- TOS and TNG movies: memory-alpha.wikia.com
Novels
- Pocket Books novel list: startreklitverse.yolasite.com
- Up until June '18 release (DSC "Fear Itself")