PHPackages                             mmaurice/modx-injector - 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. [CLI &amp; Console](/categories/cli)
4. /
5. mmaurice/modx-injector

ActiveLibrary[CLI &amp; Console](/categories/cli)

mmaurice/modx-injector
======================

Modx 1.2.x injection to use modx API in your console application

0.2.2(4y ago)0595MITPHPPHP &gt;=5.6

Since Jun 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/moss-maurice/modx-core)[ Packagist](https://packagist.org/packages/mmaurice/modx-injector)[ RSS](/packages/mmaurice-modx-injector/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (17)Used By (5)

Modx 1.2.x injection to use modx API in your console application

Пример использования:
=====================

[](#пример-использования)

```
use \mmaurice\modx\Core;
use \mmaurice\modx\Search;

// Если нам необходимо ядро Modx
$injector = new Core;
$modx = $injector->modx();

// Если необходим только ядро для работы с DB
$modxDb = $injector->db();

// Если необходим слой для работы с DB
$search = new Search;
$result = $search->query(... some sql ...);

// В слое есть следующие удобные для работы методы:
$search->getList([... params array ...]);
$search->getItem([... params array ...]);
$search->getRawSql([... params array ...]);
```

В качестве параметров фильтра принимаются следующие:

- `select`
- `alias`
- `from`
- `join`
- `where`
- `group`
- `having`
- `order`
- `limit`
- `offset`

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity45

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

Total

8

Last Release

1667d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/123941664?v=4)[kreexus](/maintainers/kreexus)[@kreexus](https://github.com/kreexus)

---

Top Contributors

[![moss-maurice](https://avatars.githubusercontent.com/u/1444521?v=4)](https://github.com/moss-maurice "moss-maurice (11 commits)")

### Embed Badge

![Health badge](/badges/mmaurice-modx-injector/health.svg)

```
[![Health](https://phpackages.com/badges/mmaurice-modx-injector/health.svg)](https://phpackages.com/packages/mmaurice-modx-injector)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.0M6.4k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20720.9k21](/packages/winbox-args)[tomatophp/filament-artisan

Simple but yet powerful library for running some artisan commands for FilamentPHP

3275.4k1](/packages/tomatophp-filament-artisan)

PHPackages © 2026

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