PHPackages                             mothership-ec/cog - 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. mothership-ec/cog

AbandonedLibrary[Framework](/categories/framework)

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

Mothership's PHP5 framework for building modular systems

4.16.0(10y ago)23.0k3[12 issues](https://github.com/mothership-ec/cog/issues)[4 PRs](https://github.com/mothership-ec/cog/pulls)16GPL-3.0+PHPPHP &gt;=5.4.0

Since Jun 19Pushed 8y ago5 watchersCompare

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

READMEChangelogDependencies (35)Versions (123)Used By (16)

Cog
===

[](#cog)

What is Cog?
------------

[](#what-is-cog)

Cog is Mothership's Symfony-based PHP framework.

What services does Cog define?
------------------------------

[](#what-services-does-cog-define)

Cog defines the following services on the service container. Don't overwrite any of these in your application unless you want to replace the functionality of this service with your own class.

- `class.loader` This is the Composer autoloader class which is based on Symfony's autoloader.
- `http.request.master` This is the `Message\Cog\HTTP\Request` instance for the current master request.
- `bootstrap.loader` This is an instance of `Message\Cog\Bootstrap\Loader`.
- `app.loader` This is the instance of the application loader class, which will be the installation's sublass of `Message\Cog\Application\Loader`.
- `module.loader` This is an instance of `Message\Cog\Module\Loader`.

What global events does Cog fire?
---------------------------------

[](#what-global-events-does-cog-fire)

- `terminate` This is the very last thing that happens for any Cog request. Use this event for stopping debug timers; garbage collection; data logging; etc.
- `cog.load.success` Fired once Cog is ready to use (but before modules have been loaded). All of Cog's event handlers and services will be setup and registered by this point.

Running tests
-------------

[](#running-tests)

To execute all tests run `phpunit` in the root of the site.

You can run tests for individual components by running `phpunit --testsuite `

e.g `phpunit --testsuite Routing` or `phpunit --testsuite Application`

[![Build Status](https://camo.githubusercontent.com/e3a9d0ba5a9950b663639b20defe520e328cd4e43439ecb7297b6d71653b6dd9/68747470733a2f2f7472617669732d63692e6f72672f6d6f74686572736869702d65632f636f672e737667)](https://travis-ci.org/mothership-ec/cog)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community30

Small or concentrated contributor base

Maturity75

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

Recently: every ~48 days

Total

74

Last Release

3673d ago

Major Versions

1.3.3 → 2.0.02014-01-10

2.2.1 → 3.0.02014-03-18

3.12.2 → 4.0.02015-02-25

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

2.0.0PHP &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 (478 commits)")[![lsjroberts](https://avatars.githubusercontent.com/u/3817697?v=4)](https://github.com/lsjroberts "lsjroberts (273 commits)")[![kuiche](https://avatars.githubusercontent.com/u/5089510?v=4)](https://github.com/kuiche "kuiche (97 commits)")[![irisSchaffer](https://avatars.githubusercontent.com/u/4313088?v=4)](https://github.com/irisSchaffer "irisSchaffer (97 commits)")[![joeholdcroft](https://avatars.githubusercontent.com/u/2511043?v=4)](https://github.com/joeholdcroft "joeholdcroft (65 commits)")[![chadtomkiss](https://avatars.githubusercontent.com/u/1034152?v=4)](https://github.com/chadtomkiss "chadtomkiss (55 commits)")[![dannyhannah](https://avatars.githubusercontent.com/u/1499449?v=4)](https://github.com/dannyhannah "dannyhannah (55 commits)")[![eleanorshakeshaft](https://avatars.githubusercontent.com/u/5039349?v=4)](https://github.com/eleanorshakeshaft "eleanorshakeshaft (13 commits)")[![jamesmoss](https://avatars.githubusercontent.com/u/629766?v=4)](https://github.com/jamesmoss "jamesmoss (10 commits)")[![sarciszewski](https://avatars.githubusercontent.com/u/3710836?v=4)](https://github.com/sarciszewski "sarciszewski (9 commits)")[![ThomasYoungson](https://avatars.githubusercontent.com/u/26529730?v=4)](https://github.com/ThomasYoungson "ThomasYoungson (4 commits)")[![EwanValentine](https://avatars.githubusercontent.com/u/1155123?v=4)](https://github.com/EwanValentine "EwanValentine (1 commits)")

---

Tags

frameworkcog

### Embed Badge

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

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

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)

PHPackages © 2026

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