PHPackages                             spencer-mortensen/theme - 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. spencer-mortensen/theme

ActiveLibrary

spencer-mortensen/theme
=======================

Build a theme for your website

0.0.13(1y ago)033LGPL-3.0-or-laterPHPPHP &gt;=7.0

Since Jun 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/spencer-mortensen/theme)[ Packagist](https://packagist.org/packages/spencer-mortensen/theme)[ Docs](https://github.com/spencer-mortensen/theme)[ RSS](/packages/spencer-mortensen-theme/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (14)Used By (0)

Filesystem
==========

[](#filesystem)

This project is available as a Composer package:
[spencer-mortensen/theme](https://packagist.org/packages/spencer-mortensen/theme)

Usage:
------

[](#usage)

```
$theme = new Theme($sitePath, $siteUrl);
$theme->set('canonicalUrl', $canonicalUrl);
$theme->apply('theme/site');
$theme->apply('theme/page');
$html = $theme->get('html');

echo $html;

=== theme/site/.html ===

{$css}{$js}{$title}

=== theme/site/.title ===
Masterlined

=== theme/site/.js ===
theme/site/script.js.list

=== theme/site/script.js.list ===
theme/site/js/
theme/site/script.js

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance41

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

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.

###  Release Activity

Cadence

Every ~48 days

Recently: every ~92 days

Total

13

Last Release

497d ago

### Community

Maintainers

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

---

Top Contributors

[![spencer-mortensen](https://avatars.githubusercontent.com/u/2017476?v=4)](https://github.com/spencer-mortensen "spencer-mortensen (13 commits)")

---

Tags

htmltheme

### Embed Badge

![Health badge](/badges/spencer-mortensen-theme/health.svg)

```
[![Health](https://phpackages.com/badges/spencer-mortensen-theme/health.svg)](https://phpackages.com/packages/spencer-mortensen-theme)
```

###  Alternatives

[ezyang/htmlpurifier

Standards compliant HTML filter written in PHP

3.4k327.6M445](/packages/ezyang-htmlpurifier)[phpoffice/phpword

PHPWord - A pure PHP library for reading and writing word processing documents (OOXML, ODF, RTF, HTML, PDF)

7.5k34.7M186](/packages/phpoffice-phpword)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[league/html-to-markdown

An HTML-to-markdown conversion helper for PHP

1.9k28.6M199](/packages/league-html-to-markdown)[picqer/php-barcode-generator

An easy to use, non-bloated, barcode generator in PHP. Creates SVG, PNG, JPG and HTML images from the most used 1D barcode standards.

1.8k25.5M88](/packages/picqer-php-barcode-generator)[soundasleep/html2text

A PHP script to convert HTML into a plain text format

48419.5M75](/packages/soundasleep-html2text)

PHPackages © 2026

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