PHPackages                             javanile/granular - 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. javanile/granular

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

javanile/granular
=================

0.0.11(6y ago)676[2 issues](https://github.com/javanile/granular/issues)PHPCI failing

Since Jul 4Pushed 6y ago1 watchersCompare

[ Source](https://github.com/javanile/granular)[ Packagist](https://packagist.org/packages/javanile/granular)[ RSS](/packages/javanile-granular/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

WP Granular
===========

[](#wp-granular)

[![StyleCI](https://camo.githubusercontent.com/1edecfe4e66d861eff765eaafb8d3fd07c338a659cededd7c55379fb82557f1f/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3133333335353433352f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/133355435)[![Build Status](https://camo.githubusercontent.com/abd2b3d198816479a68ddfbb5d7a6597213e1cd7fc780efce2d9850fcbfad0ea/68747470733a2f2f7472617669732d63692e6f72672f6a6176616e696c652f6772616e756c61722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/javanile/granular)[![codecov](https://camo.githubusercontent.com/470c660b4eab99e01ee1724db7746f45a2eb878e813f8006acbff4622ca2b99b/68747470733a2f2f636f6465636f762e696f2f67682f6a6176616e696c652f6772616e756c61722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/javanile/granular)[![Codacy Badge](https://camo.githubusercontent.com/d46eb64e242ec08eb59665425eea3ce677551d9ce293f2603e6e35c0d97d89f1/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6433373239396162336538373465393462373538666665313134333861633766)](https://www.codacy.com/app/francescobianco/granular?utm_source=github.com&utm_medium=referral&utm_content=javanile/granular&utm_campaign=Badge_Grade)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

WordPress extension framework based on object-oriented paradigm. Using Granular you can write PSR compliant code increasing the general code quality performing a better project organization. Organize your code in feature or group WordPress actions and filters in the same scope.

```
namespace Acme\Plugin;

use Javanile\Granular\Bindable;

class MyFirstPluginFeature extends Bindable
{
  static $bindings = [
    'action:init',
    'filter:the_content' => 'theContent',
  ];

  public function init()
  {
    // Init code
  }

  public function theContent($content)
  {
    return $content;
  }
}
```

```
use Javanile\Granular\Autoload;

$app = new Autoload();

// add MyPlugin::init() method to WordPress init action
$app->register(MyPlugin::class, 'init');
```

Testing
-------

[](#testing)

```
$ docker-compose run --rm phpunit --stop-on-failure tests
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Total

2

Last Release

2210d ago

### Community

Maintainers

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

---

Top Contributors

[![francescobianco](https://avatars.githubusercontent.com/u/472171?v=4)](https://github.com/francescobianco "francescobianco (39 commits)")

---

Tags

composerobject-oriented-programmingpsr-4testabilitywordpresswordpress-plugin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/javanile-granular/health.svg)

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

###  Alternatives

[symfony/dependency-injection

Allows you to standardize and centralize the way objects are constructed in your application

4.2k431.1M7.5k](/packages/symfony-dependency-injection)[illuminate/contracts

The Illuminate Contracts package.

704122.9M10.1k](/packages/illuminate-contracts)[illuminate/container

The Illuminate Container package.

31278.1M2.0k](/packages/illuminate-container)[ecotone/ecotone

Supporting you in building DDD, CQRS, Event Sourcing applications with ease.

558549.8k17](/packages/ecotone-ecotone)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[internal/dload

Downloads binaries.

98142.7k10](/packages/internal-dload)

PHPackages © 2026

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