ejimba / laravel-at-api
Africas Talking Laravel API for integrating Mobile Services in your PHP applications.
Requires
- php: >=5.4.0
- guzzlehttp/guzzle: 5.x
- illuminate/support: 4.2.x
This package is auto-updated.
Last update: 2022-04-28 17:18:27 UTC
README
Africa's Talking API for Laravel framework 4.2
Installation
Add the following to the "require" section of your composer.json
file.
"ejimba/laravel-at-api": "0.1.x"
Run the composer update
command.
Then, in your config/app.php
add this line to your 'providers' array.
'Ejimba\LaravelAtApi\LaravelAtApiServiceProvider',
After installing, you can publish the package configuration file into your application by running the following command:
php artisan config:publish ejimba/laravel-at-api
In the config file ensure you fill in your API KEY and USERNAME. If you don't have the username and api key, register for a free account at https://www.africastalking.com/account/register and get the details in the dashboard.
Usage
To send an SMS use:
LaravelAtApi::sendMessage($phoneNumber, $message);
Authors
- Ejimba Eric (www.ejimbaeric.com)
To Do
- Add feedback/reponces form the api.
- Add error catching.
- Add receiving sms.
- Add delivery receipts.
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Changelog
Version 0.1.0
- Added sms sending.
Credits
License
Licensed under The MIT License (MIT).