PHPackages                             elcontraption/wp-theme-config - 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. elcontraption/wp-theme-config

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

elcontraption/wp-theme-config
=============================

Sensible default settings and intelligent overrides for theming WordPress.

0.2.20(8y ago)15271MITPHPPHP &gt;=5.4.0

Since Mar 20Pushed 8y ago1 watchersCompare

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

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

WordPress Theme Config
======================

[](#wordpress-theme-config)

Sensible default settings and intelligent overrides for theming WordPress.

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

[](#installation)

Via Composer:

```
composer require elcontraption/wp-theme-config

```

Setup
-----

[](#setup)

In your theme's `functions.php` file:

```
/**
 * Require Composer's autoloader if you haven't already:
 */
require('vendor/autoload.php');

/**
 * Initialize ThemeConfig.
 */
ElContraption\WpThemeConfig\ThemeConfig::getInstance();
```

Check out the [default config files](defaults). You may override any of the settings within the default config files by creating a file of the same name in your theme's `config` directory. Your config override must return an array. You only need to declare the settings you would like to override.

Adding configuration settings
-----------------------------

[](#adding-configuration-settings)

TODO: add documentation for this.

**Important**: all config settings are initialized on `after_setup_theme`, so actions that need to be initialized on that hook should not be wrapped in `add_action`.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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 ~53 days

Recently: every ~30 days

Total

22

Last Release

2965d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/67c2148e71cf45c053ed2dc8adfdb4c41188f52c732b9e48e5d9304714d6449f?d=identicon)[elcontraption](/maintainers/elcontraption)

---

Top Contributors

[![elcontraption](https://avatars.githubusercontent.com/u/33114?v=4)](https://github.com/elcontraption "elcontraption (56 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/elcontraption-wp-theme-config/health.svg)

```
[![Health](https://phpackages.com/badges/elcontraption-wp-theme-config/health.svg)](https://phpackages.com/packages/elcontraption-wp-theme-config)
```

###  Alternatives

[jjgrainger/wp-crumbs

Simple Wordpress Breadcrumbs.

3910.9k](/packages/jjgrainger-wp-crumbs)[flyeralarm/php-code-validator

A custom coding standard for FLYERALARM

2226.9k6](/packages/flyeralarm-php-code-validator)

PHPackages © 2026

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