This command-line interface (CLI) allows you to calculate the number of stops required for a starship to travel a given distance based on its Maximum Megalights per Hour (MGLT) value.
The API
folder contains data for testing in Dev stage of CLI, and will be removed in production in this repository.
- PHP 8.3.3 or higher
Simply clone the repository:
git clone https://github.com/Diegiwg/SSDC-PHP.git
cd SSDC-PHP
The CLI provides command: local
.
The local
command allows you to test calculations using locally stored data.
php .\SSDC.php local <distance>
<distance>
: The distance to be traveled by the starship in Megalights.
To calculate the number of stops needed for a starship to travel 1.000.000 MGLT using local data:
php .\SSDC.php local 1000000
Contributions to this project are welcome. Feel free to submit bug reports, feature requests, or pull requests via the repository's issue tracker and pull request system.
This project is licensed under the MIT License - see the LICENSE file for details.