PHPackages                             sebkay/oop-wp - 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. sebkay/oop-wp

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

sebkay/oop-wp
=============

3.0.0(4y ago)69591[1 PRs](https://github.com/SebKay/oop-wp/pulls)MITPHPPHP ^7.4|^8.0

Since Jun 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/SebKay/oop-wp)[ Packagist](https://packagist.org/packages/sebkay/oop-wp)[ GitHub Sponsors](https://github.com/SebKay)[ RSS](/packages/sebkay-oop-wp/feed)WikiDiscussions main Synced 3w ago

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

OOP WP
======

[](#oop-wp)

[![Test PHP](https://github.com/SebKay/oop-wp/actions/workflows/php.yml/badge.svg)](https://github.com/SebKay/oop-wp/actions/workflows/php.yml)

A simple library of OOP style helper classes for WordPress theme and plugin development.

Most methods in this package are wrappers for already existing functionality like `get_the_title()` or `get_user_meta()`, but they give you a much cleaner (and more modern) way to do so!

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

[](#installation)

It's recommended you install this package via [Composer](https://getcomposer.org/).

```
composer require sebkay/oop-wp
```

You'll need to include the Composer autoloader so you have access to the package. Add the following to the top of your `functions.php` file:

```
require get_template_directory() . '/vendor/autoload.php';
```

Usage
-----

[](#usage)

Wherever you want to use one of the OOP implementations, you can do so like this:

```
use OOPWP\PostTypes\Post;

$blog_post = new Post(get_the_ID());

$blog_post->title();
```

### Dates with `nesbot/carbon`

[](#dates-with-nesbotcarbon)

All dates use the [Carbon](https://github.com/briannesbitt/Carbon) PHP library.

```
use OOPWP\PostTypes\Post;

$blog_post = new Post(get_the_ID());

# date() is \Carbon\Carbon object
$blog_post->date()->format('j F Y);
```

Available Classes
-----------------

[](#available-classes)

### Posts

[](#posts)

- `OOPWP\PostTypes\Post`

### Users

[](#users)

- `OOPWP\Users`

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

Established project with proven stability

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

Recently: every ~166 days

Total

7

Last Release

1543d ago

Major Versions

v1.x-dev → 2.0.02021-07-20

v2.x-dev → 3.0.02022-04-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/0eb0c125a95bbb96a00c31b474c67d7761c87964bd9ba973bd3e4b896097bdb5?d=identicon)[SebKay](/maintainers/SebKay)

---

Top Contributors

[![SebKay](https://avatars.githubusercontent.com/u/1873695?v=4)](https://github.com/SebKay "SebKay (50 commits)")

---

Tags

oopwordpresswordpress-object-oriented-phpwordpress-oopwordpress-php-library

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/sebkay-oop-wp/health.svg)

```
[![Health](https://phpackages.com/badges/sebkay-oop-wp/health.svg)](https://phpackages.com/packages/sebkay-oop-wp)
```

###  Alternatives

[illuminate/support

The Illuminate Support package.

630113.0M41.3k](/packages/illuminate-support)[spatie/holidays

Calculate public holidays

402860.1k2](/packages/spatie-holidays)[craftcms/feed-me

Import content from XML, RSS, CSV or JSON feeds into entries, categories, Craft Commerce products, and more.

293952.6k33](/packages/craftcms-feed-me)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

54681.3k18](/packages/solspace-craft-freeform)[pimcore/data-importer

Adds a comprehensive import functionality to Pimcore Datahub

46855.5k5](/packages/pimcore-data-importer)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)

PHPackages © 2026

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