Releases: lepresk/momo-api
Releases · lepresk/momo-api
v1.1.0
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()andMomoApi::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/, andModels/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
- Documentation: https://github.com/lepresk/momo-api#readme
- Packagist: https://packagist.org/packages/lepresk/momo-api
- Issues: https://github.com/lepresk/momo-api/issues
Full Diff: v1.0.2...v1.1.0
v1.0.2
v1.0.1
What's Changed
- Refactored MomoApi instantiation to simplify configuration. ✨
- Moved environment parameter to the
createfactory method in theMomoApiclass. 🔀 - Updated unit tests to accommodate instantiation changes. 🧪
- Updated documentation to reflect the modifications made. 📚
Full Changelog: 1.0.0...1.0.1