PHPackages                             traewelling/line-colors-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. traewelling/line-colors-php

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

traewelling/line-colors-php
===========================

00PHP

Since Sep 17Pushed 2y ago2 watchersCompare

[ Source](https://github.com/Traewelling/line-colors-php)[ Packagist](https://packagist.org/packages/traewelling/line-colors-php)[ RSS](/packages/traewelling-line-colors-php/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Public transport line colors for PHP
====================================

[](#public-transport-line-colors-for-php)

This PHP library provides functions to use the colors of public transport lines from [traewelling/line-colors](https://github.com/Traewelling/line-colors).

Warning

This library is still in development and not ready for production use. Don't use it now. :)

Installation
------------

[](#installation)

```
composer require traewelling/line-colors-php
```

Usage
-----

[](#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() . '' . PHP_EOL;
echo 'Text color: ' . $layout->getTextColor() . '' . PHP_EOL;
echo 'Shape: ' . $layout->getShape() . '' . PHP_EOL;
echo '-------------------------' . PHP_EOL;

$svg = LineColor::getSvg('albtal-verkehrs-gesellschaft-mbh', '4-a6s4-4', 'S4');
echo $svg . PHP_EOL;
```

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ac58b3aec3dadbf487c45d852e5df107a3d350812f47dc7e658f8abefd68c4a1?d=identicon)[HerrLevin\_](/maintainers/HerrLevin_)

![](https://avatars.githubusercontent.com/u/19890220?v=4)[Träwelling](/maintainers/traewelling)[@Traewelling](https://github.com/Traewelling)

![](https://avatars.githubusercontent.com/u/4103693?v=4)[Kris](/maintainers/MrKrisKrisu)[@MrKrisKrisu](https://github.com/MrKrisKrisu)

---

Top Contributors

[![MrKrisKrisu](https://avatars.githubusercontent.com/u/4103693?v=4)](https://github.com/MrKrisKrisu "MrKrisKrisu (1 commits)")

### Embed Badge

![Health badge](/badges/traewelling-line-colors-php/health.svg)

```
[![Health](https://phpackages.com/badges/traewelling-line-colors-php/health.svg)](https://phpackages.com/packages/traewelling-line-colors-php)
```

###  Alternatives

[sylius/fixtures-bundle

Configurable fixtures for Symfony applications.

518.1M17](/packages/sylius-fixtures-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
