Lang | Version |
---|---|
PHP | 8.* |
Laravel | 9.* |
composer require sarkhanrasimoghlu/lsim
php artisan vendor:publish --tag=sms-config
SMS_LOGIN="Your Api Login"
SMS_PASSWORD="Your Api Password"
SMS_SENDER="Your Api Sender Name"
SMS_BASE_URL="Your Api Url"
SMS_CHECK_BALANCE_URL=false
- Send Sms
return SmsFacade::send('smsText', 'toNumber');
- Check Balance
- First you have to make SMS_CHECK_BALANCE_URL to TRUE in your env file.
- After making your SMS_CHECK_BALANCE_URL true, copy this code and paste to in your route file.
SmsFacade::smsRoutes();
- Now you can write this url http://your-url.test/sms-balance on your browser to see your balance like this.
- If you want to customize this view then run this command.
php artisan vendor:publish --tag=sms-views