traewelling/line-colors-php
Composer 安装命令:
composer require traewelling/line-colors-php
包简介
README 文档
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;
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2023-09-17