PHP code example of uzbek / laravel-playmobile-client

1. Go to this page and download the library: Download uzbek/laravel-playmobile-client library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

uzbek / laravel-playmobile-client example snippets


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'),
];

$laravelPlaymobileClient = new Uzbek\LaravelPlaymobileClient();

$laravelPlaymobileClient->send('998901234567', 'Sms from PHP/Laravel application');

use Uzbek\LaravelPlaymobileClient\Facades\Playmobile;

Playmobile::send('998901234567', 'Sms from PHP/Laravel application');
bash
php artisan vendor:publish --tag="playmobile-client-config"