https://github.com/santik/sms_api_wrapper
API wrapper for sending SMS. Also works with combined SMS. MessageBird out of the box.
https://github.com/santik/sms_api_wrapper
Last synced: 6 months ago
JSON representation
API wrapper for sending SMS. Also works with combined SMS. MessageBird out of the box.
- Host: GitHub
- URL: https://github.com/santik/sms_api_wrapper
- Owner: santik
- Created: 2017-09-07T06:41:04.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-12T09:11:27.000Z (over 8 years ago)
- Last Synced: 2025-03-03T14:34:56.515Z (10 months ago)
- Language: PHP
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sms Api Wrapper
Supports MessageBird API out of the box.
To add support of another SMS provider (Twilio for example) create implementation of "Santik\Sms\Infrastructure\SmsClient" interface.
Install dependencies:
composer install
Run tests:
./vendor/bin/phpunit tests
Run application using build-in webserver:
php -S localhost:8000
Send POST request
curl localhost:8000/examples -d '{"recipient":"+1234567890","originator":"originator","message":"message"}' -H 'Content-Type: application/json'