PHPackages                             pragmaticweb/primary-category - 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. pragmaticweb/primary-category

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

pragmaticweb/primary-category
=============================

Set a primary category for a post

v0.2.2(3y ago)07.3k1[6 PRs](https://github.com/PragmaticWebLimited/Primary-Category/pulls)GPL-3.0-onlyJavaScriptPHP ~7.3 | ~8.0

Since Aug 24Pushed 3y ago3 watchersCompare

[ Source](https://github.com/PragmaticWebLimited/Primary-Category)[ Packagist](https://packagist.org/packages/pragmaticweb/primary-category)[ Docs](https://pragmatic.agency/)[ RSS](/packages/pragmaticweb-primary-category/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (3)Versions (12)Used By (0)

Primary Category
================

[](#primary-category)

**A project by [Pragmatic](https://pragmatic.agency).**

> Set a primary category for a post.

This software is beta, is not feature completed, has hardcoded limitations, and is provided without warranty or support.

---

- [Credits](#credits)
- [Requirements](#requirements)
- [Installation](#installation)
- [Development Process](#development-process)

---

Credits
-------

[](#credits)

The implementation of this feature was based on the same in the [Yoast SEO plugin for WordPress](https://yoast.com/wordpress/plugins/seo/). Go check them out!

Requirements
------------

[](#requirements)

### Usage Requirements

[](#usage-requirements)

Ensure you have the prerequisite software installed:

- [Composer](https://getcomposer.org/) 1.8+, installed globally.
- [PHP](https://php.net/) 7.3.5+.

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

[](#installation)

Install this plugin with Composer: `composer require pragmaticweb/primary-category`. Activate the plugin in your WordPress in the usual manner.

Development Process
-------------------

[](#development-process)

This plugin mostly follows the standard [Git Flow](http://jeffkreeftmeijer.com/2010/why-arent-you-using-git-flow/) model.

### Scripts and Tooling

[](#scripts-and-tooling)

- `npm start` -- Starts the build for development.
- `npm run build` -- Builds the code for production.
- `npm run format:js` -- Formats JavaScript files.
- `npm run lint:css` -- Lints CSS files.
- `npm run lint:js` -- Lints JavaScript files.
- `npm run packages-update` -- Updates WordPress packages to the latest version.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% 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 ~371 days

Total

3

Last Release

1397d ago

PHP version history (2 changes)v0.2.0PHP ~7.3

v0.2.2PHP ~7.3 | ~8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1275914?v=4)[Paul Wong-Gibbs](/maintainers/paulgibbs)[@paulgibbs](https://github.com/paulgibbs)

---

Top Contributors

[![AndersMagnusson-AngryCreative](https://avatars.githubusercontent.com/u/59443484?v=4)](https://github.com/AndersMagnusson-AngryCreative "AndersMagnusson-AngryCreative (11 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

### Embed Badge

![Health badge](/badges/pragmaticweb-primary-category/health.svg)

```
[![Health](https://phpackages.com/badges/pragmaticweb-primary-category/health.svg)](https://phpackages.com/packages/pragmaticweb-primary-category)
```

###  Alternatives

[zenorocha/clipboardjs

Modern copy to clipboard. No Flash. Just 3kb gzipped https://clipboardjs.com

34.1k230.7k5](/packages/zenorocha-clipboardjs)[thunder/thunder-project

Project template for Thunder projects with composer

1040.7k](/packages/thunder-thunder-project)

PHPackages © 2026

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