{"repo":"salehhashemi1992/laravel-otp-manager","free":true,"listed":false,"github":"https://github.com/salehhashemi1992/laravel-otp-manager","clone":"git clone https://github.com/salehhashemi1992/laravel-otp-manager.git","description":"Generate, send, verify, and manage one-time passwords for Laravel","language":"PHP","stars":188,"topics":["laravel","laravel-package","otp","otp-generator","otp-verification"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Laravel OTP Manager The OtpManager class is responsible for sending and verifying one-time passwords (OTPs). It provides a comprehensive set of methods to generate, send, verify, and manage OTPs. It also integrates with Laravel cache system to throttle OTP sending and provides a layer of security by tracking OTP requests. Features Main Features Generate OTP codes Send OTPs via mobile numbers Resend OTPs with built-in throttling Verify OTP codes Track OTP requests Security Rate limiting of OTP generation attempts ( OtpRateLimiter middleware) Otp Invalidation after multiple failed verifications Automatic deletion of OTP codes after successful verification Configuration Customize rate-limiting thresholds, max allowed attempts, and auto-delete Flexibility Supports multiple OTP types using enums Customizable mobile number validation Requirements - PHP: ^8.2 - Laravel framework: 12.x, 13.x Compatibility - Laravel 12.x , 13.x - PHP 8.2+ Version L12 L13 --------- -------------------- -------------------- 2.0 :white check mark: :white check mark: Installation To install the package, you can run the following command: Usage Sending OTP Resending OTP The sendAndRetryCheck method will throw a ValidationException if you try to resend the OTP before the waiting time expires. Verifying OTP Deleting Verification Code Handling and Listening to the OtpPrepared Event The OtpManager package emits an OtpPrepared event whenever a new OTP is generated. You can listen to this event and execute custo","default_branch":null,"files":null,"tree":[],"storefront":"/r/salehhashemi1992","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/salehhashemi1992/laravel-otp-manager/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."}