How-to · 4 min read

Phone verification in Laravel (PHP)

Wire programmatic phone verification into a Laravel app — provision a number, read the OTP, and confirm the user.

Install with composer require eveses/sdk, then provision and read in a controller or job.

$eveses = new Eveses\Client(getenv('EVESES_KEY'));

$order = $eveses->orders->create([
    'country' => 'ua',
    'mode'    => 'activation',
    'service' => 'yourapp',
]);

// store $order->order_id, show $order->phone to the user

// later — read the code (or receive it via a webhook route)
$o = $eveses->orders->sms($order->order_id);
$code = $o->sms[0]->otp ?? null;

$eveses->orders->finish($order->order_id);

In production, expose a webhook route and let Eveses POST the code to it instead of polling — verify the HMAC signature, then mark the user verified.


Ready to build? Create a free Eveses account, top up a wallet, and grab your API key — no KYC. See the API docs or live pricing.

FAQ

▸How do I add phone verification to Laravel?
composer require eveses/sdk, create an order, read the OTP via the SMS endpoint or a webhook route, then confirm the user.
Related guides