PHPackages                             pagamastarde/module-utils - 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. pagamastarde/module-utils

Abandoned → [pagantis/module-utils](/?search=pagantis%2Fmodule-utils)Library[Utility &amp; Helpers](/categories/utility)

pagamastarde/module-utils
=========================

Pagantis PHP Library. Module utils

v2.0.1(7y ago)02.1k2proprietaryPHPPHP &gt;=5.3

Since Dec 17Pushed 7y ago2 watchersCompare

[ Source](https://github.com/PagaMasTarde/module-utils)[ Packagist](https://packagist.org/packages/pagamastarde/module-utils)[ RSS](/packages/pagamastarde-module-utils/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (6)Dependencies (5)Versions (6)Used By (2)

Module Utils [![](https://camo.githubusercontent.com/034cb504b587da689b4ac60e7dd147e8e6d548fa3dae0d4dfde649bdd7d1a792/68747470733a2f2f7777772e706167616e7469732e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031392f30322f63726f707065642d706167616e7469735f6c6f676f2d312e706e67)](https://camo.githubusercontent.com/034cb504b587da689b4ac60e7dd147e8e6d548fa3dae0d4dfde649bdd7d1a792/68747470733a2f2f7777772e706167616e7469732e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031392f30322f63726f707065642d706167616e7469735f6c6f676f2d312e706e67)
==========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#module-utils-)

CircleCI: [![CircleCI](https://camo.githubusercontent.com/740860c8290e4cef904da4f71e8551ee6a39951026cb1288a9cb64ac2a91ea95/68747470733a2f2f636972636c6563692e636f6d2f67682f706167616e7469732f6f72646572732d6170692d636c69656e742f747265652f6d61737465722e7376673f7374796c653d737667)](https://circleci.com/gh/pagantis/orders-api-client/tree/master)

[![Latest Stable Version](https://camo.githubusercontent.com/5bd658d6622b53190918e82d232d2f4701340e9e032c6c0eb97da15be11b105a/68747470733a2f2f706f7365722e707567782e6f72672f706167616e7469732f6d6f64756c652d7574696c732f762f737461626c65)](https://packagist.org/packages/pagantis/module-utils)[![composer.lock](https://camo.githubusercontent.com/f90fd0bffa1cd454b10e185bf9535c640597a71ecdb99ea887b86ad49ba99a75/68747470733a2f2f706f7365722e707567782e6f72672f706167616e7469732f6d6f64756c652d7574696c732f636f6d706f7365726c6f636b)](https://packagist.org/packages/pagantis/module-utils)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/420cc2a98072f0168f1a2386a0b6affc8397d528b282449bf713ab4b9f830e73/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f706167616e7469732f6d6f64756c652d7574696c732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/pagantis/module-utils/?branch=master)

Module Utils will help you when developing integration test of Pagantis. The library will use the Exception object to find some problem. Check each exception type to find the error which causes the problem.

How to use
----------

[](#how-to-use)

Install the library by:

- Downloading it from [here](https://github.com/pagantis/module-utils/releases/latest)
- Using Composer:

```
composer require pagantis/module-utils
```

Finally, be sure to include the autoloader:

```
require_once '/path/to/your-project/vendor/autoload.php';
```

Once the library is ready and inside the project the stub objects will available and the moduleUtils will also available.

```
//Amount mismatch Example
try {
    if ($price1 != $price2) {
        throw new AmountMismatchException($price1, $price2);
    }
} catch(AmountMismatchException $e) {
    $jsonResponse = new JsonExceptionResponse();
    $jsonResponse->setException($e);
    $jsonResponse->toJson();
}
```

Help us to improve
------------------

[](#help-us-to-improve)

We are happy to accept suggestions or pull requests. If you are willing to help us develop better software please create a pull request here following the PSR-2 code style and we will use reviewable to check the code and if al test pass and no issues are detected by SensioLab Insights you could will be ready to merge.

- [Issue Tracker](https://github.com/pagantis/module-utils/issues)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity60

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

Total

5

Last Release

2618d ago

Major Versions

v1.1.2 → v2.0.02019-03-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c7c8679369f56fd689eb622494bb223ddca47be08cba78fe4036092fe0a3539?d=identicon)[romeritoCL](/maintainers/romeritoCL)

![](https://www.gravatar.com/avatar/0fe3d9fbc0d4153953b7ad9e12df27d3cda01990307e71022414a19f22191444?d=identicon)[rmarinleal](/maintainers/rmarinleal)

![](https://www.gravatar.com/avatar/346c5ce0fb30bcdae8264023197679cc894a88d9aebbdb5fc249bf33b186d0d5?d=identicon)[pgarcess](/maintainers/pgarcess)

---

Top Contributors

[![PGarSol](https://avatars.githubusercontent.com/u/152878420?v=4)](https://github.com/PGarSol "PGarSol (17 commits)")[![romeritoCL](https://avatars.githubusercontent.com/u/301758?v=4)](https://github.com/romeritoCL "romeritoCL (13 commits)")[![rmarinleal](https://avatars.githubusercontent.com/u/1807196?v=4)](https://github.com/rmarinleal "rmarinleal (5 commits)")

---

Tags

composerlibrarymodulepagantissrcutilsvendor

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pagamastarde-module-utils/health.svg)

```
[![Health](https://phpackages.com/badges/pagamastarde-module-utils/health.svg)](https://phpackages.com/packages/pagamastarde-module-utils)
```

###  Alternatives

[sanzgrapher/filament-draggable-modal

Make Filament modals draggable.

172.2k1](/packages/sanzgrapher-filament-draggable-modal)

PHPackages © 2026

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