Download the PHP package dejwcake/laravel-sms without Composer
On this page you can find all versions of the php package dejwcake/laravel-sms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-sms
laravel-sms
SMS service provider for Laravel and Lumen. Uses SMS Client to enable sending SMS messages using the following drivers:
nexmoclockworktextlocaltwilioO2SKaws(requires installation ofaws/aws-sdk-php)mail(somewhat untested and may be too generic to be much use)
Also has the following drivers for testing purposes:
lognullrequestbin
Fork note
This project is a fork of Matthewbdaly\LaravelSMS. It is maintained and improved by David Běhal (DejwCake).
Namespace change
The library namespace has been updated from Matthewbdaly\LaravelSMS to DejwCake\LaravelSms. Backward compatibility with the old namespace has been removed; please update your imports accordingly.
Installation for Laravel
This package is only intended for Laravel 5.5 and up. Install it with the following command:
Then publish the config file:
You will need to select the service provider Dejwcake\LaravelSms\LaravelSmsProvider. Then set your driver and any settings required in the .env file for your project:
Installation for Lumen
The installation process with Lumen is identical to that for Laravel, although if you wish to use the facade you will need to uncomment the appropriate section of bootstrap/app.php as usual.
Usage
Once the package is installed and configured, you can use the facade to send SMS messages:
Or fetch it from the app:
Or resolve the interface DejwCake\SmsClient\Contracts\Client:
Here we use the app() helper, but you'll normally want to inject it into a constructor or method of another class.
How to develop this project
Composer
Update dependencies:
Composer normalization:
Run code analysis tools (php-qa)
PHP compatibility:
Code style:
Fix style issues:
Static analysis (phpstan):
Regenerate the phpstan baseline:
Mess detector (phpmd):
Regenerate the phpmd baseline:
Run tests
Run tests:
Run tests with coverage:
Run the whole PHP suite
Run every PHP check and the test suite in sequence (stops at the first failure):