PHPackages                             arts/base - 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. [Framework](/categories/framework)
4. /
5. arts/base

ActiveLibrary[Framework](/categories/framework)

arts/base
=========

Framework-agnostic base classes for Arts WordPress plugins

v1.1.1(1mo ago)0900↓79.3%2GPL-3.0-or-laterPHPPHP &gt;=8.0

Since Dec 21Pushed 1mo agoCompare

[ Source](https://github.com/artkrsk/arts-base)[ Packagist](https://packagist.org/packages/arts/base)[ RSS](/packages/arts-base/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (21)Versions (7)Used By (2)

Arts Base
=========

[](#arts-base)

Base classes for WordPress plugins using a manager pattern architecture.

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

[](#installation)

```
composer require arts/base
```

Quick Start
-----------

[](#quick-start)

```
use Arts\Base\Plugins\BasePlugin;
use Arts\Base\Managers\BaseManager;

class MyPlugin extends BasePlugin {
    protected function get_default_config() {
        return ['version' => '1.0.0'];
    }

    protected function get_default_strings() {
        return ['name' => 'My Plugin'];
    }

    protected function get_managers_classes() {
        return ['assets' => AssetsManager::class];
    }

    protected function get_default_run_action() {
        return 'init';
    }
}

class AssetsManager extends BaseManager {
    // Access config via $this->config, strings via $this->strings
    // Access other managers via $this->managers->other_manager
}

// Initialize
MyPlugin::instance();
```

Architecture
------------

[](#architecture)

- **BasePlugin** - Per-class singleton. Constructor bootstraps the plugin (init properties, apply filters, instantiate and init managers, register `run()`), then `run()` fires on the configured WordPress action.
- **BaseManager** - Receives `$args`, `$config`, `$strings` from the plugin at construction; peer managers are wired in later via `init($managers)` (self excluded).
- **ManagersContainer** - `ArrayObject` subclass supporting both iteration and property access (`$managers->some_manager`); missing keys return `null`.

Manager Communication
---------------------

[](#manager-communication)

Peers are wired into `$this->managers` at the end of `BaseManager::init()`, *after* `init_properties()` runs. So `$this->managers` is `null` inside `init_properties()`, and only reachable from methods called after `init()` completes:

```
$this->managers->assets->enqueue_scripts();
```

Type Safety
-----------

[](#type-safety)

For IDE autocompletion, extend `ManagersContainer` and override `init_managers_container()` in your plugin. See `@template TManagers` in BasePlugin.

Used By
-------

[](#used-by)

- [Release Deploy for EDD](https://github.com/artkrsk/release-deploy-edd) - GitHub release → Easy Digital Downloads automation

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance90

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity44

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

Recently: every ~36 days

Total

6

Last Release

47d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.4

v1.0.1PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/7bea30c2234cb7a9564df323f88f993da491615955ed3fb66a42db98c12d0d15?d=identicon)[artkrsk](/maintainers/artkrsk)

---

Top Contributors

[![artkrsk](https://avatars.githubusercontent.com/u/15735987?v=4)](https://github.com/artkrsk "artkrsk (26 commits)")

###  Code Quality

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/arts-base/health.svg)

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

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M300](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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