Download the PHP package jorgeanzola/phone-number-verification without Composer
On this page you can find all versions of the php package jorgeanzola/phone-number-verification. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jorgeanzola/phone-number-verification
More information about jorgeanzola/phone-number-verification
Files in jorgeanzola/phone-number-verification
Package phone-number-verification
Short Description Phone Number Verification is a package that allows the user to verify their mobile number
License MIT
Informations about the package phone-number-verification
Phone Verification Number
Phone Number Verification is a package that allows the user to verify their mobile number as an extension to the dashboard functionality that Laravel and JetStream provides.
Installation
You can install the package via composer:
After the package has been installed, run the migrations
Usage
To enable the verification process in your User model (Or your "verificable" model) you must
- Implement a
MustVerifyPhoneNumber
interface - Use a
MustVerifyPhoneNumber
trait
for example
If you are using the default VerificationProvider: Twilio will be used as the SMS service, therefore you need to include the following environment variables
Verification provider
This is the class that will be used to send the verification code and to verify this token. By default, Twilio is used as a verification service. If you wish to replace the default provider make sure to implement the VerificationProvider interface as you should provide
Configuration
To publish the configuration file you can execute the command
Configurable parameters
A more extensive explanation of each parameter could be found on the published file itself.
API Usage
Loading... :)
Views
To publish the view files you can execute the command
Migrations
To publish the migration files you can execute the command. If you're gonna change the migration, make sure the values on the configuration file match correctly.
Translations
Loading... :)
To publish the view files you can execute the command
TODOs
- Write tests
- Release stable version
- Assure compatibility with Laravel < v8
- API usage
License
MIT
Free Software, Hell Yeah!
All versions of phone-number-verification with dependencies
laravel/framework Version ^8.12
laravel/jetstream Version ^1.6
twilio/sdk Version ^6.12