{"repo":"mohammad-fouladgar/laravel-otp","free":true,"listed":false,"github":"https://github.com/mohammad-fouladgar/laravel-otp","clone":"git clone https://github.com/mohammad-fouladgar/laravel-otp.git","description":"Headless OTP generation and validation for Laravel — channel-agnostic, event-driven, and framework for any recipient type.","language":"PHP","stars":216,"topics":["laravel","otp","otp-generator","laravel-otp","one-time-password","otp-login","otp-verification","otp-authentication"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Laravel OTP (One-Time Password) Upgrading from v5? See the Upgrade Guide for a step-by-step migration walkthrough. Introduction Laravel OTP provides a secure, simple, and flexible way to generate, send, and validate One-Time Passwords. It supports multiple independent OTP flows through purpose-based tokens, ensuring that another cannot consume a token generated for one flow. OTP delivery is fully extensible and can use any notification channel, including SMS, email, or custom channels. The package is event-driven, providing lifecycle events that make it easy to integrate OTP flows with your application's business logic, monitoring, auditing, or external notification services. Table of Contents - Basic Usage - Requirements - Installation - Configuration - Notification Channel - Token Storage - Token Lifetime - Token Length - Token Generator - Purpose - Disabling Notifications - Customization - Events - Translations - Testing - Faking a Token - Running Tests Basic Usage Once the package is configured, sending and validating tokens is straightforward. The same API works whether the recipient is a mobile number, an email address, or another identifier supported by your notification channel. Send a token: Send to an email address (point otp.channel to mail ): Send through multiple channels for this call: Validate a token (recipient must match the value used for send() ): Read the generated token after send() : Revoke a pending token: send() and validate() return bool . On failure,","default_branch":null,"files":null,"tree":[],"storefront":"/r/mohammad-fouladgar","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mohammad-fouladgar/laravel-otp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}