PHPackages                             turanct/css-inliner - 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. [CLI &amp; Console](/categories/cli)
4. /
5. turanct/css-inliner

ActiveApplication[CLI &amp; Console](/categories/cli)

turanct/css-inliner
===================

Command line tool using tijsverkoyen/css-to-inline-styles for inlining css

0.3.0(10y ago)1151MITPHP

Since Nov 10Pushed 10y ago1 watchersCompare

[ Source](https://github.com/turanct/css-inliner)[ Packagist](https://packagist.org/packages/turanct/css-inliner)[ Docs](http://github.com/turanct/css-inliner)[ RSS](/packages/turanct-css-inliner/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

css-inliner CLI tool
====================

[](#css-inliner-cli-tool)

A command line tool of [Tijs Verkoyen's Css To Inline Styles](https://github.com/tijsverkoyen/CssToInlineStyles), so that we can use it in builds.

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

[](#installation)

### Globally

[](#globally)

```
git clone https://github.com/turanct/css-inliner.git /usr/local/css-inliner && cd /usr/local/css-inliner && curl -sS https://getcomposer.org/installer | php && php composer.phar install && ln -s /usr/local/css-inliner/css-inliner /usr/local/bin/css-inliner && cd -
```

### Locally in a php project

[](#locally-in-a-php-project)

```
{
    "require-dev": {
        "turanct/css-inliner": "dev-master"
    },
    "config": {
        "bin-dir": "bin"
    }
}
```

Usage
-----

[](#usage)

### See USAGE message:

[](#see-usage-message)

```
/path/to/css-inliner --help
```

### Inline some CSS from a file

[](#inline-some-css-from-a-file)

```
/path/to/css-inliner file.html
```

### Inline some CSS from STDIN

[](#inline-some-css-from-stdin)

```
cat file.html | /path/to/css-inliner
```

### Writing to a file

[](#writing-to-a-file)

If you want to write to a file, you can just redirect the STDOUT to a file:

```
cat file.html | /path/to/css-inliner > inlined.html
```

Thanks
------

[](#thanks)

@tijsverkoyen

License
-------

[](#license)

This code is provided under the MIT license.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

3836d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fcdce4f02b6e4e353431c361e9f193fa469f59cf3eddeca683b6f74efc8efa28?d=identicon)[turanct](/maintainers/turanct)

---

Top Contributors

[![turanct](https://avatars.githubusercontent.com/u/1728360?v=4)](https://github.com/turanct "turanct (3 commits)")

### Embed Badge

![Health badge](/badges/turanct-css-inliner/health.svg)

```
[![Health](https://phpackages.com/badges/turanct-css-inliner/health.svg)](https://phpackages.com/packages/turanct-css-inliner)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)

PHPackages © 2026

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