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

AbandonedLibrary

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

Cog module for order returns in Mothership

5.4.0(10y ago)01.6k1[27 issues](https://github.com/mothership-ec/cog-mothership-returns/issues)[7 PRs](https://github.com/mothership-ec/cog-mothership-returns/pulls)1GPL-3.0+PHPPHP &gt;=5.4.0

Since Nov 18Pushed 10y ago4 watchersCompare

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

READMEChangelogDependencies (4)Versions (40)Used By (1)

Mothership Returns
==================

[](#mothership-returns)

*description*

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

[](#installation)

Add `"message/cog-mothership-returns": "1.1.*"` to your `composer.json`.

Assembling a new return
-----------------------

[](#assembling-a-new-return)

The assembler helps you build a new return ready for passing to the create decorator.

This service is available via:

```
$assembler = $this->get('return.assembler');
```

If you have an existing return you can pass this into the assembler with:

```
$assembler->setReturn($return);
```

And retrieve the assembled return once you are finished building it:

```
$return = $assembler->getReturn();
```

If your return has no associated order, i.e. is standalone, you should set the currency. This defaults to `'GBP'`:

```
$assembler->setCurrency('EUR');
```

You can set the return item from either a instance of `Commerce\Order\Entity\Item\Item` or `Commerce\Product\Unit\Unit`.

```
// Standard
$orderItem = $this->get('order.item.loader')->getByID(1);
$assembler->setReturnItem($orderItem);

// Standalone
$productUnit = $this->get('product.unit.loader')->getByID(1);
$assembler->setReturnItem($productUnit);
```

Notes
-----

[](#notes)

Namespaces and classes are called `OrderReturn` due to PHP having `return` as a reserved word.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 67.5% 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 ~39 days

Recently: every ~62 days

Total

24

Last Release

3655d ago

Major Versions

1.1.0 → 2.0.02014-06-11

2.0.0 → 3.0.02014-06-24

3.0.1 → 4.0.02014-08-08

4.3.0 → 5.0.02015-02-25

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

1.0.2PHP &gt;=5.4.0

### Community

Maintainers

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

---

Top Contributors

[![lsjroberts](https://avatars.githubusercontent.com/u/3817697?v=4)](https://github.com/lsjroberts "lsjroberts (435 commits)")[![thomasjthomasj](https://avatars.githubusercontent.com/u/4520924?v=4)](https://github.com/thomasjthomasj "thomasjthomasj (88 commits)")[![irisSchaffer](https://avatars.githubusercontent.com/u/4313088?v=4)](https://github.com/irisSchaffer "irisSchaffer (60 commits)")[![kuiche](https://avatars.githubusercontent.com/u/5089510?v=4)](https://github.com/kuiche "kuiche (27 commits)")[![eleanorshakeshaft](https://avatars.githubusercontent.com/u/5039349?v=4)](https://github.com/eleanorshakeshaft "eleanorshakeshaft (16 commits)")[![joeholdcroft](https://avatars.githubusercontent.com/u/2511043?v=4)](https://github.com/joeholdcroft "joeholdcroft (10 commits)")[![dannyhannah](https://avatars.githubusercontent.com/u/1499449?v=4)](https://github.com/dannyhannah "dannyhannah (7 commits)")[![richmccartney](https://avatars.githubusercontent.com/u/1201618?v=4)](https://github.com/richmccartney "richmccartney (1 commits)")

---

Tags

moneyordersproductscogmothershipcommerceorderreturns

### Embed Badge

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

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

###  Alternatives

[sylius/order-bundle

Sales order management for Symfony applications.

11415.2k8](/packages/sylius-order-bundle)[craftcms/digital-products

Sell digital product licenses with Craft Commerce

1814.3k3](/packages/craftcms-digital-products)

PHPackages © 2026

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