PHPackages                             brightoak/wordpress-tools - 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. brightoak/wordpress-tools

ActiveLibrary

brightoak/wordpress-tools
=========================

A collection of tools for doing WordPress tasks in a modern PHP way.

0.11.0(6y ago)039MITPHPPHP ^7.1

Since Aug 2Pushed 6y ago1 watchersCompare

[ Source](https://github.com/brightoak/wordpress-tools)[ Packagist](https://packagist.org/packages/brightoak/wordpress-tools)[ Docs](https://github.com/brightoak/wordpress-tools)[ RSS](/packages/brightoak-wordpress-tools/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

Bright Oak WordPress Tools
==========================

[](#bright-oak-wordpress-tools)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1be21349b51a77b4be4de7bdd3436c07b998ee4a9ddd50b23030459a1eac7a99/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6272696768746f616b2f6f726470726573732d746f6f6c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/brightoak/wordpress-tools)[![Build Status](https://camo.githubusercontent.com/358ca03ea68db4f2ac4f27ac31e1827a94aa8d85e7ac771e38a613af6be3e0e2/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f6272696768746f616b2f776f726470726573732d746f6f6c73)](https://travis-ci.org/brightoak/wordpress-tools)[![Quality Score](https://camo.githubusercontent.com/b78c7e5e4741e64d409485ac780ee55797e306f08816212db4ac3d225e31aa41/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f6272696768746f616b2f776f726470726573732d746f6f6c733f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/brightoak/wordpress-tools)[![Total Downloads](https://camo.githubusercontent.com/144e9562e67062ca9800ff1845fa590ccd2a4154ae28fb7517f67c95d909d812/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6272696768746f616b2f776f726470726573732d746f6f6c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/brightoak/wordpress-tools)

This is a tool for doing things in WordPress that are often verbose and should be easier.

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

[](#installation)

You can install the package via composer:

```
composer require brightoak/wordpress-tools
```

Usage
-----

[](#usage)

#### Custom Post Types:

[](#custom-post-types)

Simple example:

```
add_action('init', function(){
    CustomPostType::init('example')->setSupports('title', 'editor')->register();
});
```

Elaborate example from [https://codex.wordpress.org/Function\_Reference/register\_post\_type](https://codex.wordpress.org/Function_Reference/register_post_type)

```
add_action('init', function(){
    CustomPostType::init('book')
    ->setOptions('description' => 'Description', 'has_archive' => true])
    ->setSupports('title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments')
    ->register();
});
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Rory McDaniel](https://github.com/rorymcdaniel)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

PHP Package Boilerplate
-----------------------

[](#php-package-boilerplate)

This package was generated using the [PHP Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Total

4

Last Release

2452d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/846e22f12b52ece29666d004384b67a83e139d3a784b6425c450e536eaf4399a?d=identicon)[rorymcdaniel](/maintainers/rorymcdaniel)

---

Top Contributors

[![rorymcdaniel](https://avatars.githubusercontent.com/u/331850?v=4)](https://github.com/rorymcdaniel "rorymcdaniel (14 commits)")

---

Tags

wordpressbrightoakwordpress-tools

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/brightoak-wordpress-tools/health.svg)

```
[![Health](https://phpackages.com/badges/brightoak-wordpress-tools/health.svg)](https://phpackages.com/packages/brightoak-wordpress-tools)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)

PHPackages © 2026

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