PHP code example of adedaramola / laravel-termii

1. Go to this page and download the library: Download adedaramola/laravel-termii 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/ */

    

adedaramola / laravel-termii example snippets




declare(strict_types=1);

namespace App\Http\Controllers;

use Adedaramola\Termii\Contracts\TermiiClientContract;

class SendOtpController extends Controller
{
    public function __construct(
        private TermiiClientContract $termiiClient,
    ) {}

    public function store()
    {
        $this->termiiClient->token()->sendToken();
    }
}

declare(strict_types=1);

Termii::token()->sendToken();
bash
php artisan vendor:publish --tag="termii-config"