hirbod-codes / sms
Send sms messages through a third party api.
v0.2.0
2022-04-18 11:54 UTC
Requires
- php: ^8
- laravel/framework: ^9
Requires (Dev)
- fakerphp/faker: ^1.9.1
- mockery/mockery: ^1.4.4
- phpunit/phpunit: ^9.5
README
A basic laravel package to send SMS messages through third party APIs.
Run: php artisan smspackage:install It will make a new config file called 'smspackage.php' in config directory, if haven't got any.
Then run php artisan make:notification ExampleSms
Then in ExampleSms define a method named 'toSms' that returns an inatance of HirbodKhatami\SmsPackage\Sms class.
Don't forget to use 'text' and 'to' public methods of Sms class(this is required).