Download the PHP package sanjabteam/verify without Composer
On this page you can find all versions of the php package sanjabteam/verify. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sanjabteam/verify
More information about sanjabteam/verify
Files in sanjabteam/verify
Package verify
Short Description Verify users mobile number by one time password.
License MIT
Homepage https://github.com/sanjabteam/verify
Informations about the package verify
Sanjab Verify
[![Latest Stable Version](https://poser.pugx.org/sanjabteam/verify/v/stable)](https://packagist.org/packages/sanjabteam/verify)
[![Total Downloads](https://poser.pugx.org/sanjabteam/verify/downloads)](https://packagist.org/packages/sanjabteam/verify)
[![Build Status](https://github.com/sanjabteam/verify/workflows/tests/badge.svg)](https://github.com/sanjabteam/verify/actions)
[![Code Style](https://github.styleci.io/repos/214197383/shield?style=flat)](https://github.styleci.io/repos/214197383)
[![Code Coverage](https://codecov.io/gh/sanjabteam/verify/branch/master/graph/badge.svg?sanitize=true)](https://codecov.io/gh/sanjabteam/verify)
[![License](https://poser.pugx.org/sanjabteam/verify/license)](https://packagist.org/packages/sanjabteam/verify)
Verify your user mobile/email with a one-time password.
Installation
You can install the package via composer:
Publish config file using:
Configuration
code
: Unique code generator configs.
resend_delay
: Resend delay between code sends in seconds.
expire_in
: Expire sent code after minutes.
max_attemps
: Max code check attempts.
max_resends
: Maximum resends in one hour.
per_session
: Maximum resends in one hour based on the user session. (Limitation: if user clear cookie)per_ip
: Maximum resends in one hour based on user IP. (Limitation: If two different user use one proxy)
Usage
Send code to the user
App\Helpers\SmsVerifyMethod
is your send method class and you need to create that like this.
Verify
You can verify code with request validation.
mobile
is your receiver which in this case is mobile.
You can also verify it manually.
Note: You can verify a code just once. so if you need to check code in two different requests then you should use something like the session to handle that.
Contributing
Contributions are welcome!
- Fork the Project
- Clone your project (git clone https://github.com/your_username/verify.git)
- Create new branch (git checkout -b your_feature)
- Commit your Changes (git commit -m 'new feature')
- Push to the Branch (git push origin your_feature)
- Open a Pull Request
License
The MIT License (MIT). Please see License File for more information.