uzbek / laravel-playmobile-client
Sending sms via Playmobile
0.0.4
2022-10-22 09:54 UTC
Requires
- php: ^8.1
- bilfeldt/laravel-http-client-logger: ^1.2
- illuminate/contracts: ^9.0
- spatie/laravel-package-tools: ^1.9.2
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^6.0
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^7.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-10-09 23:28:30 UTC
README
Installation
You can install the package via composer:
composer require uzbek/laravel-playmobile-client
You can publish the config file with:
php artisan vendor:publish --tag="playmobile-client-config"
This is the contents of the published config file:
return [ 'token_lifetime' => env('PLAYMOBILE_TOKEN_DURATION', 24 * 3600 * 30), 'base_url' => env('PLAYMOBILE_URL'), 'username' => env('PLAYMOBILE_USERNAME'), 'password' => env('PLAYMOBILE_PASSWORD'), 'originator' => env('PLAYMOBILE_ORIGINATOR'), 'proxy_url' => env('PLAYMOBILE_PROXY_URL'), 'proxy_proto' => env('PLAYMOBILE_PROXY_PROTO'), 'proxy_host' => env('PLAYMOBILE_PROXY_HOST'), 'proxy_port' => env('PLAYMOBILE_PROXY_PORT'), ];
Usage
With object
$laravelPlaymobileClient = new Uzbek\LaravelPlaymobileClient(); $laravelPlaymobileClient->send('998901234567', 'Sms from PHP/Laravel application');
or with Facade
use Uzbek\LaravelPlaymobileClient\Facades\Playmobile; Playmobile::send('998901234567', 'Sms from PHP/Laravel application');
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.