PHPackages                             nerbiz/wordclass - 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. nerbiz/wordclass

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

nerbiz/wordclass
================

Making programming with WordPress easier and more fun

4.1.0(2y ago)4303MITPHPPHP ^8.0

Since Mar 16Pushed 2y ago3 watchersCompare

[ Source](https://github.com/nerbiz/wordclass)[ Packagist](https://packagist.org/packages/nerbiz/wordclass)[ RSS](/packages/nerbiz-wordclass/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (104)Used By (0)

WordClass
=========

[](#wordclass)

Making programming with WordPress easier and more fun.

I created this, because I got confused with a number of WordPress functions, that either look too similar, have an unreasonable amount of parameters, or are unnecessarily difficult to work with. And I didn't want to always search for the names of hooks.

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

[](#installation)

WordClass requires PHP 8 and can be installed with [Composer](https://getcomposer.org/):

```
composer require nerbiz/wordclass

```

Wiki
----

[](#wiki)

### Please note:

[](#please-note)

The [Wiki pages](https://github.com/nerbiz/wordclass/wiki) are outdated (version 3). They will be updated, or maybe the examples are sufficient. Either way, they're not entirely accurate anymore.

Usage
-----

[](#usage)

All features are shown and documented in the [example files](https://github.com/nerbiz/wordclass/tree/master/example) directory.

It's always a good practice to use a prefix in your code, to avoid naming conflicts with WordPress, themes or plugins. WordClass therefore uses a prefix for many things, like options or post type names, with `xyz` as the default.

Please set your prefix first, because changing it later requires you to rename values in the database as well.

```
use Nerbiz\WordClass\Init;
use Nerbiz\WordClass\Options;

// Set your prefix ('xyz' is default)
Init::setPrefix('abc');

// Example usage, this option will be stored as 'abc_option_name'
Options::set('option_name', 'option_value');
```

Problems
--------

[](#problems)

If you encounter any problem, please add an [issue](https://github.com/nerbiz/wordclass/issues).

Contributing
------------

[](#contributing)

If you want to translate, or have some ideas about expanding or improving this project, I'm open for suggestions and pull requests.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

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

Recently: every ~30 days

Total

98

Last Release

1001d ago

Major Versions

0.9.2 → 1.0.02018-11-03

0.9.4 → 1.2.02019-03-31

1.8.3 → 2.0.0-beta.12019-10-05

2.5.4 → 3.0.02021-04-27

3.1.2 → 4.0.02023-08-15

PHP version history (4 changes)0.1.1PHP &gt;=5.4

1.2.0PHP ^7.1

3.1.1PHP &gt;=7.1

4.0.0PHP ^8.0

### Community

Maintainers

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

---

Top Contributors

[![nerbiz](https://avatars.githubusercontent.com/u/6173907?v=4)](https://github.com/nerbiz "nerbiz (715 commits)")

### Embed Badge

![Health badge](/badges/nerbiz-wordclass/health.svg)

```
[![Health](https://phpackages.com/badges/nerbiz-wordclass/health.svg)](https://phpackages.com/packages/nerbiz-wordclass)
```

###  Alternatives

[liyu/dingo-serializer-switch

A middleware to switch dingo serializer

51138.7k2](/packages/liyu-dingo-serializer-switch)[php-forge/foxy

Fast, reliable, and secure Bun/NPM/Yarn/pnpm bridge for Composer

45103.3k4](/packages/php-forge-foxy)[asm/php-utilities

php tools with data container, collection objects, yaml config loader and timer

107.7k](/packages/asm-php-utilities)[relbraun/yii2repeater

Repeater widget for yii2 tabular

114.8k](/packages/relbraun-yii2repeater)[cytopia/check_git

Nagios plugin to verify a git repository.

105.2k](/packages/cytopia-check-git)[jonof/moodle-block_completion_progress

Moodle plugin for student time management.

191.4k](/packages/jonof-moodle-block-completion-progress)

PHPackages © 2026

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