jord-jd / sms-providers
Provides data on popular SMS providers
Fund package maintenance!
Requires
- php: >=7.1
- jord-jd/php-countries: ^4.0
Replaces
- divineomega/sms-providers: v3.0.0
This package is auto-updated.
Last update: 2026-07-18 12:36:44 UTC
README
Warning
This package is retired. Its provider coverage tables are static and can become inaccurate as carrier routes, regulatory rules, and provider availability change.
New applications should query the chosen SMS provider's current coverage/pricing API or documentation at decision time. Existing v3 releases remain available only for legacy applications that have independently validated the bundled data.
This library provides data on popular SMS providers.
Installation
To install the SMS Providers package, simply run the following Composer command from the root of your project.
composer require jord-jd/sms-providers
Usage
Get providers by destination country
You can retrieve all the providers that deliver SMS to specific countries. See the following code for an example.
$country = (new Countries())->getByName('United Kingdom'); $providers = (new Providers())->getByDestinationCountry($country);
This code will retrieve an array of all the providers that support sending text messages to phone numbers starting with the '44' calling code (United Kingdom).
Get providers by calling code
You can retrieve all the providers that deliver SMS to numbers beginning with a specific calling code. See the following example snippet.
$providers = (new Providers())->getByDestinationCallingCode('44');
This code will retrieve an array of all the providers that support sending text messages to phone numbers starting with the '44' calling code (United Kingdom).