PHPackages                             mixerapi/core - 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. mixerapi/core

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

mixerapi/core
=============

MixerAPI Core libraries

v2.1.1(5mo ago)3203.5k↓29.7%55MITPHPPHP ^8.1CI passing

Since Sep 15Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/mixerapi/core)[ Packagist](https://packagist.org/packages/mixerapi/core)[ RSS](/packages/mixerapi-core/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)Dependencies (6)Versions (29)Used By (5)

MixerAPI Core
=============

[](#mixerapi-core)

[![Latest Version on Packagist](https://camo.githubusercontent.com/af364ed9c06224ab9e87063d442c7897e8643ff774c8e660a523a2c5afda7450/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d697865726170692f636f72652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mixerapi/core)[![Build](https://github.com/mixerapi/core/actions/workflows/master.yml/badge.svg)](https://github.com/mixerapi/core/actions/workflows/master.yml)[![Coverage Status](https://camo.githubusercontent.com/3da07b0b00551372d569d3c99aa9a42f8949de66bb50dc349dc12997efe23bf1/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d697865726170692f636f72652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/mixerapi/core?branch=master)[![MixerApi](https://camo.githubusercontent.com/d467ff75477d185c9ee8ee3bc8251b0fcd2ff0a4296b9d6e650ed90194931a78/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d697865722d6170692d7265643f6c6f676f3d646174613a696d6167652f706e673b6261736536342c6956424f5277304b47676f414141414e5355684555674141414241414141414f434159414141416d4c35794b4141414679487055574852535958636763484a765a6d6c735a5342306558426c494756346157594141486a6172566470736a4d6e44507a504b5849456b42444c63566972636f4d635038317165393737746c51383973437769466133454750562f766d3771372f774952323073754b4469383570664779306b524971516139506e48656a37627a7642333071482b314b7439314261474b557642353932754d543275553134617868386d653743727548776a5a6b7275483534624879714e64336b47696e315737734e6851334968654466346561743647794230346f2b3263767246574d5a2f5852344d465346537a455249304e6139794a4e774a65763452666d4866434f4d4d5764574a574b495150456844793464356c567238543945487971616b6e2b3466374a2f6d553967682b634f6d4f6175373744694f5064723772302f7643664248525a30654c783952586b6e75766f6665327645765767564733493271536259345a444d79676e4f63306838766a4a366a37655556635153646449486e565257646378555244554b557259303031795854545a6c6c4d4155524c6a54784b6f6b493832774a37696c52343659544c6450496375554a42346b4a4e4d614f5a4c68597a3134317a765749435671344751386e416d4d4755483137715a35312f63716e657936444944444c6234677134614d513159417a6c7868326a49496a70577a655a424a397279362f66416775684367566c30687a67594e4a356d63686958724846553266474f45473574704252766d34446f4168724338415968674c614752626a6a505a4533686a7747434251416e4a6953786b4b4742477141456d57325a4879464769736a546e657a4c456b35476730497a644243474848487470455468444c576b48386542735151306c597249673438524b5552456d4f6e5858696e504e754a4c6e6b32567376336e6e766734382b425134325348444268784269534a45694977644b644e484845474e4d6956544351676d324573596e7447544b6e473257374c4c504963656343734b6e32434c464656394369535656716c79524a717172766f5961613270474e57534b5a7073303133774c4c62625545577564752b335358666339394e6a54565732722b7558364139584d566f326d556d4f637636716856586c2f544a6952546d526f4273584947696a7568774949614271613657437370614863304578485a444d57416b675a32716871686d4b5130445a443073335637715863622b6d6d4a507957627651723564535137763951546b4736723770396f316f643531795a697131644f446a566a4e32482f6861536f6f415258554a4368584c4a7342414d7a55647762675666624a342b4b7a6a4c347536436f724f6d54366d654455537a45733067645a71424e306867773659305a4d415967387746744834766b53473161626e4f4f54346d587876477a31556a5a79334c76446c7a6f652f736d374b73685542495444617274616f3931737547726e647050532b334d464f41356452647148754e324f625538546153676d2b754844354f365946752b654e4e39325854684178765856386443546175652b6f3766332b6a4e4759617377466e6478724956436f464f6e584b53375a7175584e344b6f4444596f354f485164503153473635586a56335334584d3759494e31304f71546f7578356a6a43676a5179476e31706d4358323969364e78777570577058374b454f77626759734e6871502f4b725a624e6c64723546497454567838432b7a4a46316977466a442f563062506a6c56634a476133336836565a336350546b7739516445514458446a674f76784a42586254567677556c387642534f395a77775a79777858484e545262366e4c4558425a7970485452305974746934786150643638314a335a4f787a30786d2f2b4b4c626e3645574a494d474d6e714d47304f3274697065554d3376472b52494262374851716b4b4d3857565461533332746a73484c556b322b6c4c6a6e496e2f51735766546161716e6159366169454c626e666c366b553479695057694e664a417939585451616c4731495230417658455638734c5334754d62566a6a4a745969695643375246412b70726d7046452f596572373764652f513177376d34324d346c5a545034464c3337726668356f34753870457064306939664c474c684979546f4a564e766930396a50656a6234472b343677584a7a397733726a334a617546454b683632706b784752427276784c374c6a2f704c662f4e684f706b553833355a424b4854494b543737427842704135492b6c3031584b6a545430484e536b3766703276764649723370416831356f646b56757a3747305178766c6c353935534f4f7844666e424b6270306b63667872322f6b326a68644957646b6d6c655a783748396b49495670664f62375a794934457374744f55344259586f6835486b6362596870515253387050766e6b644c71717457435059715465543455524173437a70315575366a6c3970572f4237776262504563664f597453366d646a564a2f34772f787459354275334e6d516944654f4841334b45504c793739716d384c667751334f4950525964672f4f6c564c624b33635a366a394b344d57754931754b4267694e502b327642504a4e756b2f766b69636244352f6e2f4648685035365164776d2f504d587273616136476b734a315a31414552347642386531554335464865394b2b4d2b752f67556c35745939586d61314e7741414159527051304e5153554e444948427962325a706247554141436952665a4539534d4e41484d5666553656464b6f495745584549574a307369496f346168574b55434855437130366d467a36425530616b68515852384731344f44485974584278566c58423164424550774163584a30556e535245762b5846467245656e44636a336633486e6676414b4657597072564d51356f756d306d347a45786e566b5641363849516b41762b6a45734d3875596b365145326f3676652f6a346568666c576533502f546d3631617a46414a3949504d734d30796265494a37657441334f2b38526856704256346e50694d5a4d7553507a496463586a4e3835356c77576547545a5479586e694d4c47596232476c68566e423149696e69434f71706c4f2b6b505a5935627a4657537456574f4f652f495768724c36797a4857615134686a4555755149454a424255575559434e4b7130364b68535474783972344231322f524336465845557763697967444132793677662f67392f6457726e4a4353387046414d3658787a6e5977514937414c3171754e38487a744f2f51547750774e5865744e667267457a6e3652586d31726b434f6a5a426936756d35717942317a7541414e50686d7a4b7275536e4b6552797750735a66564d47364c734675746138336872374f48304155745256346759344f4152473835533933756264776462652f6a3354364f3848506d42796b684977667a674141414147596b74485241442f415038412f36433970354d414141414a6345685a6377414143784d4141417354415143616e4267414141414864456c4e5251666b43414953467a6435354362354141414368456c455156516f7a3357535430685555525447762f7675665450767a646a595047634d47386b732f307a61474b4d354334654a6773786174416769534163715774516d69494a414637724b467259714368707930557044616d4f356951774a676a5254694277545377332f6f4f576f54546250392b613932364c356f3058663676416476682f6e33487349414c77747137354e54504d36414169794247495273566d4541346132306374553759702f636e526d532b2f6c7765414a2b2b70366e354179424c734e726b4d6843465972534d726a414e592b6a534d784d546b4d773477454a6b636a6151443775664c4459796343744b70794942575a6e5a76475078494a53476c524459392b666741674378434e354d6947774242726141414941546850546f3139784e3479377765413636596f426a49517a6b644f50627459765a6e4c584b4955426566746e6f3637545742304f777a7a6c7766497866502b4964506c4a41735877686b4170304c3533344f6c31385337773864727a4c6e46462b44632b713232717564395a63553953716c65332f5630522f78494d41774178764a7931357579306b564b6159356847457474725331526c6759594330732b77726b54414f794b6f69754b4d696a4c63717a76394d6c6d52584565694d5657664158374b3850755a4c4a666b7152566d3833572f72447a6b562f496a434b796b757971334c52617262445a62464e7472533052747a746641674348777746465557596b53664b6f7172716961567074426d416b4e697253745253642b4771614a674473546c6d6c466f736c33563754646431782f6c7a54467744494143686a6f557739752b425656625758633537582f66694a58394d3069474c6d7542594a49634d4151436c3155774159394e625747495a2b565569397153425a643270316752744c3858696a4c4d7475516b69464c4d74676a455542614954673174483659336141694177416b735273424d2f2b69544e593579727575424f494e31384c7a382f5064786357466f4a534367414a7a6e6d6b3865795a6147716147546267395265746d38626c5850496e4c5a555577313551674c563839303376774f752b73564151484c6955436953714f6e754774747a42717a322b61566b51696f5473536678587a4a55487569336e753257584a375376382f343441507747337950673336563370377741414141415355564f524b35435949493d)](http://mixerapi.com)[![CakePHP](https://camo.githubusercontent.com/be71b0dd29f1024dc31e09a537d8633461e770d73e9deac28c2c42cce002ff37/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f63616b657068702d253545352e302d7265643f6c6f676f3d63616b65706870)](https://book.cakephp.org/4/en/index.html)[![Minimum PHP Version](https://camo.githubusercontent.com/88f5af675e16072d2bae3a481dc6e9f8297bbce952642cc0fbb1e0825b36963e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e312d3838393242462e7376673f6c6f676f3d706870)](https://php.net/)

Core library for easily sharing commonly used classes and utilities across MixerAPI plugins. There is likely minimal value installing this package without the full mixerapi plugin.

This branch is for CakePHP 5.x only. Supported versions:

VersionBranchCake VersionPHP Version2.\*master^5.0^8.11.\*[v1](https://github.com/mixerapi/core/tree/v1)^4.2^8.0Installation
------------

[](#installation)

```
composer require mixerapi/core
```

See the CakePHP documentation for [loading plugins](https://book.cakephp.org/5/en/plugins.html).

### Event Listener Loader

[](#event-listener-loader)

The Event Listener Loader will automatically load all listeners which implement `Cake\Event\EventListenerInterface`within a given namespace. Example:

```
# src/Application.php
use Cake\Http\BaseApplication;
use MixerApi\Core\Event\EventListenerLoader;

class Application extends BaseApplication
{
    public function bootstrap(): void
    {
        // ...other code
        (new EventListenerLoader())->load();
        // other code...
    }
}
```

The default behavior loads all listeners in `App\Event`. You can pass a different namespace argument as `load($namespace)` if your listeners are located elsewhere.

### Namespace Utility

[](#namespace-utility)

Returns one or more classes in a given namespace.

```
use MixerApi\Core\Utility\NamespaceUtility;

$controllers = NamespaceUtility::findClasses('\App\Controller');
```

By default, this will load classes from your `src/` and `plugin/*/src` directories. This should be left as-is unless your application has a very specific need. You can override the default file path list if necessary.

```
use MixerApi\Core\Utility\NamespaceUtility;

$controllers = NamespaceUtility::findClasses('\App\Controller', ['/absolute/path/to/src']);
```

###  Health Score

54

—

FairBetter than 96% of packages

Maintenance70

Regular maintenance activity

Popularity39

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity74

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

Recently: every ~274 days

Total

28

Last Release

176d ago

Major Versions

v0.3.0 → v1.0.12022-01-16

v1.x-dev → v2.0.02024-01-07

PHP version history (3 changes)v0.1.0PHP &gt;=7.2

v1.0.1PHP ^8.0

v2.0.0PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/171294?v=4)[Chris Nizzardini](/maintainers/cnizzardini)[@cnizzardini](https://github.com/cnizzardini)

---

Top Contributors

[![cnizzardini](https://avatars.githubusercontent.com/u/171294?v=4)](https://github.com/cnizzardini "cnizzardini (51 commits)")

---

Tags

cakephpmixerapi

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mixerapi-core/health.svg)

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

###  Alternatives

[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

3361.0M51](/packages/dereuromark-cakephp-tools)[cakephp/debug_kit

CakePHP Debug Kit

86314.7M171](/packages/cakephp-debug-kit)[cakephp/bake

Bake plugin for CakePHP

11212.0M202](/packages/cakephp-bake)[dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

308954.9k25](/packages/dereuromark-cakephp-queue)[dereuromark/cakephp-ide-helper

CakePHP IdeHelper Plugin to improve auto-completion

1882.3M44](/packages/dereuromark-cakephp-ide-helper)[markstory/asset_compress

An asset compression plugin for CakePHP. Provides file concatenation and a flexible filter system for preprocessing and minification.

3701.1M15](/packages/markstory-asset-compress)

PHPackages © 2026

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