traewelling / line-colors-php
This package is abandoned and no longer maintained.
No replacement package was suggested.
There is no license information available for the latest version (dev-main) of this package.
dev-main
2023-09-17 08:42 UTC
Requires
- traewelling/line-colors: dev-main
This package is not auto-updated.
Last update: 2024-02-05 09:08:32 UTC
README
This PHP library provides functions to use the colors of public transport lines from traewelling/line-colors.
Warning
This library is still in development and not ready for production use. Don't use it now. :)
Installation
composer require traewelling/line-colors-php
Usage
use Traewelling\LineColor\LineColor; require_once __DIR__ . '/../vendor/autoload.php'; $layout = LineColor::getLayout('albtal-verkehrs-gesellschaft-mbh', '4-a6s4-4'); echo 'Background color: ' . $layout->getBackgroundColor() . '<br/>' . PHP_EOL; echo 'Text color: ' . $layout->getTextColor() . '<br/>' . PHP_EOL; echo 'Shape: ' . $layout->getShape() . '<br/>' . PHP_EOL; echo '<br/>-------------------------<br/>' . PHP_EOL; $svg = LineColor::getSvg('albtal-verkehrs-gesellschaft-mbh', '4-a6s4-4', 'S4'); echo $svg . PHP_EOL;