Download the PHP package roomies/phonable without Composer
On this page you can find all versions of the php package roomies/phonable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download roomies/phonable
More information about roomies/phonable
Files in roomies/phonable
Package phonable
Short Description Gather insights and verify phone numbers from multiple third-party providers.
License MIT
Homepage https://github.com/roomies-com/phonable
Informations about the package phonable
Roomies Phonable
Roomies Phonable provides an abstraction layer to identify and verify phone numbers in your Laravel app. Phone verification can be used to help identify legitmate users of your app and also serve as a way to handle 2-factor authentication. Phonable provides implementations for a number of phone services including Prelude (previously Ding), Twilio, and Vonage.
Installation
You can install the package via Composer:
You can publish the config file with:
Read through the config file to understand the supported services and provide the correct configuration for your preferred services.
Identification
Identification is a way to gather more information about a phone number including the country of origin, phone number type and more. This feature is supported by Prelude and Vonage.
Alternatively you can pass an object that implements Roomies\Phonable\Contracts\PhoneIdentifiable
- getIdentifiablePhoneNumber()
should return the phone number in E.164 format.
You can swap the driver out on the fly as necessary.
Verification
Verification is a two-step process in sending a generated code to a phone number that then needs to be entered back into your app to complete the process. This ensures your user has timely access to the phone number provided. This feature is supported by Prelude, Twilio, and Vonage.
Alternatively you can pass an object that implements Roomies\Phonable\Contracts\PhoneVerifiable
- getVerifiablePhoneNumber()
should return the phone number in E.164 format and getVerifiableSession()
should return the previously stored verification request ID.
You will need to store the verification session ID as it will be used to complete the process.
When you receive the code from the user you can then call the verify
method with the provided code. Roomies\Phonable\Verification\VerificationResult
is a simple enum of the result.
You can swap the driver out on the fly as necessary.
License
The MIT License (MIT). Please see License File for more information.
All versions of phonable with dependencies
guzzlehttp/guzzle Version ^7.8
illuminate/contracts Version ^10.0|^11.0
illuminate/support Version ^10.0|^11.0