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 today

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 35% 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

3889d 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

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M508](/packages/pimcore-pimcore)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.1k17.8k](/packages/prestashop-prestashop)[illuminate/mail

The Illuminate Mail package.

5910.6M500](/packages/illuminate-mail)[twig/cssinliner-extra

A Twig extension to allow inlining CSS

22920.3M88](/packages/twig-cssinliner-extra)[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)

PHPackages © 2026

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