Looking to hire Laravel developers? Try LaraJobs

laravel-playmobile-client maintained by uzbek

Description
Sending sms via Playmobile
Author
Last update
2023/10/09 22:59 (dev-dependabot/github_actions/stefanzweifel/git-auto-commit-action-5)
License
Downloads
17

Comments
comments powered by Disqus

Sending sms via Playmobile

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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.