PHPackages                             mindkomm/theme-lib-404 - 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. mindkomm/theme-lib-404

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

mindkomm/theme-lib-404
======================

404 status helper functions for WordPress themes

1.0.0(8y ago)0531MITPHPPHP &gt;=7.0.0

Since Feb 13Pushed 8y ago3 watchersCompare

[ Source](https://github.com/mindkomm/theme-lib-404)[ Packagist](https://packagist.org/packages/mindkomm/theme-lib-404)[ RSS](/packages/mindkomm-theme-lib-404/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

404
===

[](#404)

404 status helper function for WordPress themes.

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

[](#installation)

You can install the package via Composer:

```
composer require mindkomm/theme-lib-404
```

Functions
---------

[](#functions)

NameSummaryTypeReturns/Description[force\_404](#force_404)Forces 404 headers on a query.### force\_404

[](#force_404)

Forces 404 headers on a query.

Use this function in a [WordPress template file](https://wphierarchy.com/).

When a template other than 404.php is loaded, the proper headers for a 404 status are not set properly. This function can be used to set proper headers even after a template file is loaded.

What you have to do after this request is to include the 404 template and exit after it.

**PHP**

```
if ( 'publish' !== $post->post_status ) {
    force_404();
    Timber::render( '404.twig', $context );
    exit;
}
```

---

Support
-------

[](#support)

This is a library that we use at MIND to develop WordPress themes. You’re free to use it, but currently, we don’t provide any support.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

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

Unknown

Total

1

Last Release

3052d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2084481?v=4)[Lukas Gächter](/maintainers/gchtr)[@gchtr](https://github.com/gchtr)

---

Top Contributors

[![gchtr](https://avatars.githubusercontent.com/u/2084481?v=4)](https://github.com/gchtr "gchtr (1 commits)")

### Embed Badge

![Health badge](/badges/mindkomm-theme-lib-404/health.svg)

```
[![Health](https://phpackages.com/badges/mindkomm-theme-lib-404/health.svg)](https://phpackages.com/packages/mindkomm-theme-lib-404)
```

###  Alternatives

[mtownsend/read-time

A PHP package to show users how long it takes to read content.

282616.7k2](/packages/mtownsend-read-time)[holt59/cakephp3-bootstrap-helpers

Bootstrap Helpers for CakePHP 3.0

125241.8k](/packages/holt59-cakephp3-bootstrap-helpers)[digitaldonkey/ecverify

A library integrating Ethereum with typed PHP.

14117.3k2](/packages/digitaldonkey-ecverify)[eddieace/php-simple

1363.7k](/packages/eddieace-php-simple)

PHPackages © 2026

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