PHPackages                             mothership-ec/cog-mothership-cp - 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. [Admin Panels](/categories/admin)
4. /
5. mothership-ec/cog-mothership-cp

AbandonedLibrary[Admin Panels](/categories/admin)

mothership-ec/cog-mothership-cp
===============================

Cog module for the Mothership Control Panel

3.5.5(10y ago)12.7k1[43 issues](https://github.com/mothership-ec/cog-mothership-cp/issues)[2 PRs](https://github.com/mothership-ec/cog-mothership-cp/pulls)8proprietaryJavaScriptPHP &gt;=5.4.0

Since Jul 29Pushed 10y ago4 watchersCompare

[ Source](https://github.com/mothership-ec/cog-mothership-cp)[ Packagist](https://packagist.org/packages/mothership-ec/cog-mothership-cp)[ Docs](http://mothership.ec)[ RSS](/packages/mothership-ec-cog-mothership-cp/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependencies (3)Versions (60)Used By (8)

Mothership Control Panel
========================

[](#mothership-control-panel)

### Main menu building

[](#main-menu-building)

### Group markup

[](#group-markup)

This is the markup required for groups of content, repeatable groups and dual column groups.

```

	Group title

		...

			Group title

				...

			Group title

				...

			Group title

				...

		Group title

			...

		Group title

			...

		Group title

			...

		Group title

			...

	Test title

			...

			...

```

Dashboards and Statistics
-------------------------

[](#dashboards-and-statistics)

### Datasets

[](#datasets)

**Register new dataset**

```
$services->extend('statistics', function($statistics, $c) {
    // Simple value counter
	$statistics->add(new MyDataset($c['db.query'], $c['statistics.counter'], $c['statistics.range.date']));

	// Key based counter
	$statistics->add(new MyKeyDataset($c['db.query'], $c['statistics.counter.key'], $c['statistics.range.date']));
});
```

```
class MyDataset extends AbstractDataset
{
    public function getName()
    {
        return 'my.dataset';
    }

    public function getPeriodLength()
    {
        return static::DAILY;
    }

    public function rebuild()
    {
        // add rebuilding sql to transaction and commit if not overridden
    }
}
```

**Get a dataset**

```
$dataset = $this->get('statistics')->get('my.dataset');
```

**Push a value**

```
$dataset->counter->push($value);
```

**Set a value by key**

```
$dataset->counter->set($key, $value);
```

**Get the current counter**

```
$dataset->counter->get();
$dataset->counter->get($key);
```

**Increment / decrement**

```
$dataset->counter->increment();
$dataset->counter->decrement($step);

$dataset->counter->decrement($key);
$dataset->counter->increment($key, $step);
```

**Get a range of values**

```
// From the beginning of time
$values = $dataset->range->getValues(0);

// From a week ago
$values = $dataset->range->getValues(
    $dataset->range->getWeekAgo()
);

// Previous month
$values = $dataset->range->getValues(
    $dataset->range->getMonthAgo(1),
    $dataset->range->getMonthAgo()
);
```

**Get a range of values with keys**

```
$data = $dataset->range->getKeyValues(0);
```

**Get average of values**

```
$monthAverage = $dataset->range->getAverage(
    $dataset->range->getMonthAgo()
);
```

**Get total of values**

```
$yearToDate = $dataset->range->getTotal(
    $dataset->range->getYearAgo()
);
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community26

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~3 days

Total

41

Last Release

3854d ago

Major Versions

1.8.0 → 2.0.02015-01-08

2.2.1 → 3.0.02015-02-24

PHP version history (2 changes)1.0.0PHP &gt;=5.3.0

1.0.3PHP &gt;=5.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9c80abec1ec847de90ada27e2239c31f4374ed1d91912493f5415a688c269a78?d=identicon)[thomasjthomasj](/maintainers/thomasjthomasj)

---

Top Contributors

[![thomasjthomasj](https://avatars.githubusercontent.com/u/4520924?v=4)](https://github.com/thomasjthomasj "thomasjthomasj (148 commits)")[![richmccartney](https://avatars.githubusercontent.com/u/1201618?v=4)](https://github.com/richmccartney "richmccartney (103 commits)")[![lsjroberts](https://avatars.githubusercontent.com/u/3817697?v=4)](https://github.com/lsjroberts "lsjroberts (67 commits)")[![kuiche](https://avatars.githubusercontent.com/u/5089510?v=4)](https://github.com/kuiche "kuiche (58 commits)")[![irisSchaffer](https://avatars.githubusercontent.com/u/4313088?v=4)](https://github.com/irisSchaffer "irisSchaffer (22 commits)")[![aislingbrock](https://avatars.githubusercontent.com/u/3073759?v=4)](https://github.com/aislingbrock "aislingbrock (19 commits)")[![dannyhannah](https://avatars.githubusercontent.com/u/1499449?v=4)](https://github.com/dannyhannah "dannyhannah (10 commits)")[![joeholdcroft](https://avatars.githubusercontent.com/u/2511043?v=4)](https://github.com/joeholdcroft "joeholdcroft (9 commits)")[![eleanorshakeshaft](https://avatars.githubusercontent.com/u/5039349?v=4)](https://github.com/eleanorshakeshaft "eleanorshakeshaft (3 commits)")[![jamesmoss](https://avatars.githubusercontent.com/u/629766?v=4)](https://github.com/jamesmoss "jamesmoss (2 commits)")

---

Tags

admincogmothershipcontrol panelCP

### Embed Badge

![Health badge](/badges/mothership-ec-cog-mothership-cp/health.svg)

```
[![Health](https://phpackages.com/badges/mothership-ec-cog-mothership-cp/health.svg)](https://phpackages.com/packages/mothership-ec-cog-mothership-cp)
```

###  Alternatives

[symfonyid/admin-bundle

Provide Admin Generator with KISS Principle

141.6k](/packages/symfonyid-admin-bundle)

PHPackages © 2026

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