{"id":20299736,"url":"https://github.com/pagantis/module-utils","last_synced_at":"2026-04-29T01:02:53.410Z","repository":{"id":57035078,"uuid":"148482268","full_name":"pagantis/module-utils","owner":"pagantis","description":"Set of tools to help standard the development of Pagantis modules","archived":false,"fork":false,"pushed_at":"2019-03-19T11:36:51.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-04-19T16:14:09.627Z","etag":null,"topics":["composer","library","module","pagantis","src","utils","vendor"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pagantis.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-12T13:10:26.000Z","updated_at":"2019-04-09T12:18:18.000Z","dependencies_parsed_at":"2022-08-23T20:50:48.517Z","dependency_job_id":null,"html_url":"https://github.com/pagantis/module-utils","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/pagantis/module-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pagantis%2Fmodule-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pagantis%2Fmodule-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pagantis%2Fmodule-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pagantis%2Fmodule-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pagantis","download_url":"https://codeload.github.com/pagantis/module-utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pagantis%2Fmodule-utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32405904,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer","library","module","pagantis","src","utils","vendor"],"created_at":"2024-11-14T16:16:05.839Z","updated_at":"2026-04-29T01:02:53.393Z","avatar_url":"https://github.com/pagantis.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Module Utils \u003cimg src=\"https://www.pagantis.com/wp-content/uploads/2019/02/cropped-pagantis_logo-1.png\" width=\"100\" align=\"right\"\u003e\n\nCircleCI: [![CircleCI](https://circleci.com/gh/pagantis/orders-api-client/tree/master.svg?style=svg)](https://circleci.com/gh/pagantis/orders-api-client/tree/master)\n\n[![Latest Stable Version](https://poser.pugx.org/pagantis/module-utils/v/stable)](https://packagist.org/packages/pagantis/module-utils)\n[![composer.lock](https://poser.pugx.org/pagantis/module-utils/composerlock)](https://packagist.org/packages/pagantis/module-utils)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/pagantis/module-utils/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/pagantis/module-utils/?branch=master)\n\nModule Utils will help you when developing integration test of Pagantis. The library will use the Exception object to\nfind some problem. Check each exception type to find the error which causes the problem. \n\n## How to use\n\nInstall the library by:\n\n- Downloading it from [here](https://github.com/pagantis/module-utils/releases/latest)\n\n- Using Composer:\n```php\ncomposer require pagantis/module-utils\n```\nFinally, be sure to include the autoloader:\n```php\nrequire_once '/path/to/your-project/vendor/autoload.php';\n```\n\nOnce the library is ready and inside the project the stub objects will available and the moduleUtils will also \navailable.\n\n```php\n//Amount mismatch Example\ntry {\n    if ($price1 != $price2) {\n        throw new AmountMismatchException($price1, $price2);\n    }\n} catch(AmountMismatchException $e) {\n    $jsonResponse = new JsonExceptionResponse();\n    $jsonResponse-\u003esetException($e);\n    $jsonResponse-\u003etoJson();\n}\n\n```\n\n## Help us to improve\n\nWe are happy to accept suggestions or pull requests. If you are willing to help us develop better software\nplease create a pull request here following the PSR-2 code style and we will use reviewable to check\nthe code and if al test pass and no issues are detected by SensioLab Insights you could will be ready\nto merge.\n\n* [Issue Tracker](https://github.com/pagantis/module-utils/issues)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpagantis%2Fmodule-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpagantis%2Fmodule-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpagantis%2Fmodule-utils/lists"}