Download the PHP package geoffreyrose/rank-phone-numbers without Composer

On this page you can find all versions of the php package geoffreyrose/rank-phone-numbers. 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 rank-phone-numbers

[![Latest Stable Version](https://img.shields.io/packagist/v/geoffreyrose/rank-phone-numbers?style=flat-square)](https://packagist.org/packages/geoffreyrose/rank-phone-numbers) [![License](https://img.shields.io/github/license/geoffreyrose/rank-phone-numbers?style=flat-square)](https://github.com/geoffreyrose/rank-phone-numbers/blob/main/LICENSE)

!!IN BETA!!

Find The Best Phone Number! PHP + Laravel Facade

A PHP/Laravel package to rank phone numbers to help you find the best ones. Great for when you have a list of phone numbers, and you want to find the best one to use.

Works great with Twilio, Bandwidth, Vonage, SignalWire or any other programmable communication provider to help you find the best phone number to use.

Requirements

Usage

Installation

With Plain PHP

With Laravel Facade

Laravel uses Package Auto-Discovery, which doesn't require you to manually add the ServiceProvider and Facade.

Example

Methods

setPhoneNumbers(array $phoneNumbers): self

Sets the phone numbers to be ranked

setPhoneNumbersKeyName(string $phoneNumbersKeyName): self

Sets the key name of the phone number when using an associative array or object

addRule($rule): self

Adds a rule to the ranking system. Must extend \RankPhoneNumbers\Abstracts\RuleAbstract

addWordRule($rule): self

Adds a word rule to the ranking system. Must extend \RankPhoneNumbers\Abstracts\WordRuleAbstract

rank(): array

Ranks the phone numbers. Returning an array of the phone numbers sorted by rank.

Includes the rank_phone_number_points and rank_phone_number_word_match_end properties.

Rules

Default Rules

Rules look at last four digits of the phone number.

Modify Rules

Add Rule

Word Rules

The list of words that is checked against is mostly the words from the Oxford 5000, which is a list of 5000 words you should understand for a1-b2 english literacy. The list is trimmed down to be about 3000 words that are length 4-7 long.

Checks the last four, five, six, and seven letters of the phone number to see if it is a word in T9 conversion.

Default Word Rules

Modify Word Rules

Rule Abstracts and Word Rule Abstracts

All defaults can be updated as needed.

For example, to change the points of a rule:

Rule Properties

Word Rule Properties

If you want to disable a specific word rule, set isActive to false.

TODO


All versions of rank-phone-numbers with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
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 geoffreyrose/rank-phone-numbers contains the following files

Loading the files please wait ....