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

ActiveLibrary

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 5d 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 80% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

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

1495d 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

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M350](/packages/tymon-jwt-auth)[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[spatie/laravel-sitemap

Create and generate sitemaps with ease

2.6k14.6M107](/packages/spatie-laravel-sitemap)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[team-reflex/discord-php

An unofficial API to interact with the voice and text service Discord.

1.1k379.4k24](/packages/team-reflex-discord-php)[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)

PHPackages © 2026

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