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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package phonable

Roomies Phonable

Latest Version on Packagist GitHub Tests Action Status Total Downloads

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

PHP Build Version
Package Version
Requires php Version ^8.3
guzzlehttp/guzzle Version ^7.8
illuminate/contracts Version ^10.0|^11.0
illuminate/support Version ^10.0|^11.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package roomies/phonable contains the following files

Loading the files please wait ....