PHPackages                             smsalert/php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. smsalert/php-sdk

ActiveLibrary[API Development](/categories/api)

smsalert/php-sdk
================

PHP Library for sending sms

1.0(5y ago)42009[1 PRs](https://github.com/SMSAlert/API-Integration-Sample-Code-PHP/pulls)MITPHP

Since Mar 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/SMSAlert/API-Integration-Sample-Code-PHP)[ Packagist](https://packagist.org/packages/smsalert/php-sdk)[ Docs](https://github.com/SMSAlert/API-Integration-Sample-Code-PHP)[ RSS](/packages/smsalert-php-sdk/feed)WikiDiscussions main Synced 6d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Overview
--------

[](#overview)

[![SMS Alert Logo](banner.jpg)](banner.jpg)

SMS Alert PHP library for sending transactional/promotional SMS, through your custom code. Easy to integrate, just write 2 lines of code to send SMS.

To send SMS you need an account on [SMS Alert](https://www.smsalert.co.in), if you do not have an account, signup for a free demo account, to test the service, then after you can purchase credits to use it in your application.

Installation
------------

[](#installation)

You can install **smsalert/php-sdk** via composer or by downloading the source.

### Via Composer:

[](#via-composer)

**smsalert/php-sdk** is available on Packagist as the [`smsalert/php-sdk`](https://packagist.org/packages/smsalert/php-sdk) package:

```
composer require smsalert/php-sdk

```

### Paramerer Details

[](#paramerer-details)

```
SMSALERT_USER 	: username of your smsalert account
SMSALERT_PWD 	: password of your smsalert account
MOBILENO	: single or multiple mobile numbers (seperated by comma), with or without country code
TEXT	  	: message content to be sent
SCHEDULE	: future schedule date and time when you wish to send sms

```

### Usage

[](#usage)

#### 1. include Class file

[](#1-include-class-file)

```
include("vendor/autoload.php");
use SMSAlert\Lib\Smsalert\Smsalert;

```

#### 2. create object and set authentication parameter

[](#2-create-object-and-set-authentication-parameter)

```
$SMSALERT_USER = ''; //change here
$SMSALERT_PWD  = ''; //change here

$smsalert      = (new Smsalert())
		->authWithUserIdPwd($SMSALERT_USER,$SMSALERT_PWD);

```

#### 3. send sms

[](#3-send-sms)

```
$MOBILENO      = ''; //change here
$TEXT          = ''; //change here

$smsalert->setSender('CVDEMO')
         ->send($MOBILENO, $TEXT);

```

### For Advanced Users

[](#for-advanced-users)

#### send schedule sms

[](#send-schedule-sms)

```
$MOBILENO      = ''; //change here
$TEXT          = ''; //change here
$SCHEDULE      = ''; //change here

$smsalert->setSender('CVDEMO')
         ->send($MOBILENO, $TEXT, $SCHEDULE);

```

#### set route

[](#set-route)

```
$smsalert->setRoute('transactional');

```

#### set senderid

[](#set-senderid)

```
$smsalert->setSender('CVDEMO');

```

#### set force prefix for countrycode

[](#set-force-prefix-for-countrycode)

```
$smsalert->setForcePrefix('91');

```

#### Support

[](#support)

```
Email :  support@cozyvision.com
Phone :  (+91)-80-1055-1055

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 68.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1888d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c05acfc95c02d18947ca66bd172928e1cff13a7a91c77be6aa93f8c99e6d5c5?d=identicon)[cozyvision](/maintainers/cozyvision)

---

Top Contributors

[![cozyvision](https://avatars.githubusercontent.com/u/7001175?v=4)](https://github.com/cozyvision "cozyvision (89 commits)")[![manishankar3005](https://avatars.githubusercontent.com/u/35345414?v=4)](https://github.com/manishankar3005 "manishankar3005 (12 commits)")[![Subashbist](https://avatars.githubusercontent.com/u/63403403?v=4)](https://github.com/Subashbist "Subashbist (11 commits)")[![brijkishor7828](https://avatars.githubusercontent.com/u/58461326?v=4)](https://github.com/brijkishor7828 "brijkishor7828 (10 commits)")[![manicozy](https://avatars.githubusercontent.com/u/35325717?v=4)](https://github.com/manicozy "manicozy (7 commits)")[![shwetahub](https://avatars.githubusercontent.com/u/103027323?v=4)](https://github.com/shwetahub "shwetahub (1 commits)")

---

Tags

apismssmsalert

### Embed Badge

![Health badge](/badges/smsalert-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/smsalert-php-sdk/health.svg)](https://phpackages.com/packages/smsalert-php-sdk)
```

###  Alternatives

[plivo/plivo-php

A PHP SDK to make voice calls &amp; send SMS using Plivo and to generate Plivo XML

1102.8M18](/packages/plivo-plivo-php)[plivo/php-sdk

A PHP SDK to make voice calls &amp; send SMS using Plivo and to generate Plivo XML

1101.9M5](/packages/plivo-php-sdk)[melipayamak/php

A PHP wrapper for melipayamak's web services

3294.4k5](/packages/melipayamak-php)[smsfactor/smsfactor-php-sdk

SMSFactor client library for PHP

15382.5k2](/packages/smsfactor-smsfactor-php-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
