Skip to content

Releases: lepresk/momo-api

v1.1.0

26 Oct 21:57

Choose a tag to compare

v1.1.0 - Complete Disbursement API & Modern Structure

New Features

  • Complete Disbursement API: Full support for transfer, refund, and deposit operations
  • Fluent Configuration: New MomoApi::collection() and MomoApi::disbursement() factory methods for cleaner API
  • Quick Payment Helper: Added quickPay() method for faster payment integration

Improvements

  • Fixture Tests: Added 18 new fixture tests validating parsing of real MTN API responses (20 JSON fixtures)
  • Modern Structure: Refactored to Laravel-style architecture with Abstracts/, Support/, and Models/ directories
  • Static Analysis: Integrated PHPStan level 5 into CI/CD workflow
  • Complete Documentation: All public methods now have usage examples in docblocks
  • SEO Optimization: Enhanced Packagist discoverability with optimized keywords and metadata

Technical

  • Test Suite: 57 tests with 211 assertions
  • Code Quality: PHPStan level 5 with 0 errors
  • Structure: Clean architecture following YAGNI principles
  • CI/CD: Automated PHPStan + PHPUnit on push/PR

Package Stats

src/
├── Abstracts/          (Base classes)
├── Support/            (Helpers)
├── Models/             (8 DTOs)
├── Products/           (3 API classes)
├── Exceptions/         (7 exceptions)
└── MomoApi.php

Full Changelog

Features:

  • feat: complete disbursement API and add fluent configuration (cedce44)

Tests:

  • test: add fixture tests with real MTN API responses (c01bdf4)

Refactoring:

  • refactor: modernize package structure with Laravel conventions (1629d00)
  • refactor: remove unused InteractsWithHttp trait (b24d6fd)

Documentation:

  • docs: add sample usage for getBalance and quickPay methods (f724482)

CI/CD:

  • ci: add PHPStan static analysis to workflow (dbf0e0e)

Chore:

  • chore: optimize composer.json for Packagist SEO (5d4fe61)
  • chore: bump version to v1.1.0 in README badge (2b0a8e4)

Links


Full Diff: v1.0.2...v1.1.0

v1.0.2

22 Apr 19:08
fb9ee2e

Choose a tag to compare

What's Changed

  • Refactoring MomoApi instantiation and updating tests and documentation by @lepresk in #2
  • fix: test transaction amount fail by @lepresk in #3
  • fix: documentation & badge by @lepresk in #4
  • bug fixes by @lepresk in #5

Full Changelog: 1.0.1...v1.0.2

v1.0.1

10 Jul 12:23

Choose a tag to compare

What's Changed

  • Refactored MomoApi instantiation to simplify configuration. ✨
  • Moved environment parameter to the create factory method in the MomoApi class. 🔀
  • Updated unit tests to accommodate instantiation changes. 🧪
  • Updated documentation to reflect the modifications made. 📚

Full Changelog: 1.0.0...1.0.1

v1.0.0

05 Jul 18:55

Choose a tag to compare

First app version