Download the PHP package yohacodes/afro-msg-php without Composer
On this page you can find all versions of the php package yohacodes/afro-msg-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yohacodes/afro-msg-php
More information about yohacodes/afro-msg-php
Files in yohacodes/afro-msg-php
Package afro-msg-php
Short Description A modern, PSR-compliant PHP SDK for easily integrating with the Afromessage API. Includes support for verification, messaging, and more.
License MIT
Informations about the package afro-msg-php
AfroMsg - PHP SDK for Afromessage API
AfroMsg is a modern, extensible PHP SDK for integrating with the Afromessage API. It supports token-based authentication, code verification, message sending, and is fully PSR-compliant. Ideal for Laravel and any PHP-based backend.
๐ Features
- โ Clean and simple API for SMS verification and messaging
- โ PSR-4 & PSR-12 compliant structure
- โ Laravel-ready (via optional ServiceProvider)
- โ Extensible via interfaces (use Guzzle, Curl, or any HTTP client)
- โ Fully tested with PHPUnit
- โ IDE-friendly with stubs and PHPDocs
๐ฆ Installation
Install the SDK using Composer:
`
โ๏ธ Configuration
Create a .env
file or define your token manually:
Alternatively, configure directly in code:
โจ Quick Start
๐ Verify Code
๐งฑ Architecture
๐งช Testing
Run all unit and feature tests using:
We recommend using Mockery
and Guzzle MockHandler
for mocking API calls.
๐งฉ Extending
Create a custom client by implementing the interface:
You can then inject or bind your implementation as needed.
๐ฏ Laravel Integration (Optional)
For Laravel users, a service provider and config file can be published:
๐ง Roadmap
- [x] Basic verify functionality
- [ ] SMS sending
- [ ] Delivery reports
- [ ] Balance check
- [ ] Notifications and webhooks
- [ ] Laravel package auto-discovery
๐ค Contributing
Contributions are welcome!
- Fork the repo
- Run
composer install
- Create your feature branch (
git checkout -b feature/my-feature
) - Commit your changes
- Push to the branch
- Create a new Pull Request
๐ก License
This package is open-sourced software licensed under the MIT license.
๐ Contact & Support
For questions or support, please open an issue or email [email protected]
.
Crafted with โค๏ธ by Yohannes Z. (https://github.com/yohacode)
All versions of afro-msg-php with dependencies
guzzlehttp/guzzle Version ^7.9
vlucas/phpdotenv Version ^5.6
symfony/var-dumper Version ^7.3