PHPackages                             goetas/fo-simil-css - 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. goetas/fo-simil-css

ActiveLibrary

goetas/fo-simil-css
===================

v0.2.1(6y ago)114.3k↓50%MITPHP

Since Dec 21Pushed 6y ago1 watchersCompare

[ Source](https://github.com/goetas/fo-simil-css)[ Packagist](https://packagist.org/packages/goetas/fo-simil-css)[ RSS](/packages/goetas-fo-simil-css/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

fo-simil-css
============

[](#fo-simil-css)

============

### Install

[](#install)

```

composer require goetas/fo-simil-css

```

Simil CSS for XSL FO. Uses XPath instead of CSS selectors.

### CSS Stylesheet example

[](#css-stylesheet-example)

```
$xml = new DOMDocument("1.0", "UTF-8");
$xml->load("file.fo");

$css = new FoSimilCss();
$css->applyCss($xml, "style.css");
```

```
@namespace fo "http://www.w3.org/1999/XSL/Format";

/* element selector */
fo|block {
    border: solid 0.5pt black;
}
/* @id selector */
#user {
    width: 100%;
}
/* @role selector */
.user {
    width: 100%;
}
```

It supports all selector types supported by *Symfony\\CssSelector*

### XML Stylesheet example

[](#xml-stylesheet-example)

```
$xml = new DOMDocument("1.0", "UTF-8");
$xml->load("file.fo");

$css = new FoSimilCss();
$css->applyXmlCss($xml, "style.xml");
```

```

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.7% 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 ~244 days

Total

5

Last Release

2457d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/776743?v=4)[Asmir Mustafic](/maintainers/goetas)[@goetas](https://github.com/goetas)

---

Top Contributors

[![goetas](https://avatars.githubusercontent.com/u/776743?v=4)](https://github.com/goetas "goetas (22 commits)")[![riccardonar](https://avatars.githubusercontent.com/u/5285820?v=4)](https://github.com/riccardonar "riccardonar (1 commits)")

### Embed Badge

![Health badge](/badges/goetas-fo-simil-css/health.svg)

```
[![Health](https://phpackages.com/badges/goetas-fo-simil-css/health.svg)](https://phpackages.com/packages/goetas-fo-simil-css)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[pelago/emogrifier

Converts CSS styles into inline style attributes in your HTML code

94944.1M110](/packages/pelago-emogrifier)[laravel/browser-kit-testing

Provides backwards compatibility for BrowserKit testing in the latest Laravel release.

5139.4M286](/packages/laravel-browser-kit-testing)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[scotteh/php-dom-wrapper

Simple DOM wrapper to select nodes using either CSS or XPath expressions and manipulate results quickly and easily.

1471.9M10](/packages/scotteh-php-dom-wrapper)

PHPackages © 2026

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