PHPackages                             developifynet/sms4connect-php - 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. developifynet/sms4connect-php

ActiveLibrary[API Development](/categories/api)

developifynet/sms4connect-php
=============================

SMS 4 Connect SMS API Wrapper for PHP

v1.0.1(6y ago)031MITPHPPHP &gt;=5.4.0CI failing

Since Apr 21Pushed 6y agoCompare

[ Source](https://github.com/developifynet/sms4connect-php)[ Packagist](https://packagist.org/packages/developifynet/sms4connect-php)[ RSS](/packages/developifynet-sms4connect-php/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

SMS 4 Connect SMS API Wrapper for PHP
=====================================

[](#sms-4-connect-sms-api-wrapper-for-php)

[![Build Status](https://camo.githubusercontent.com/c59043e0b28eab034f19dabc49c9222c43e3fbe5e0c6bc2837a5c0086132a211/68747470733a2f2f7472617669732d63692e6f72672f6c61726176656c2f6672616d65776f726b2e737667)](https://travis-ci.org/developifynet/sms4connect-php)[![Total Downloads](https://camo.githubusercontent.com/957994d350352a1f77861117e00c5341e58f4e65d04225e2eea07fc63a0fe760/68747470733a2f2f706f7365722e707567782e6f72672f646576656c6f706966796e65742f736d7334636f6e6e6563742d7068702f642f746f74616c2e737667)](https://packagist.org/packages/developifynet/sms4connect-php)[![Latest Stable Version](https://camo.githubusercontent.com/a6a43b197e9b8f78d1396d885a55102b9a8656b6e630e82f793a8229277471b6/68747470733a2f2f706f7365722e707567782e6f72672f646576656c6f706966796e65742f736d7334636f6e6e6563742d7068702f762f737461626c652e737667)](https://packagist.org/packages/developifynet/sms4connect-php)[![License](https://camo.githubusercontent.com/f0213f412348b50e530229086d331e4256b0b626ef949b4b6a6dabfc2a97af22/68747470733a2f2f706f7365722e707567782e6f72672f646576656c6f706966796e65742f736d7334636f6e6e6563742d7068702f6c6963656e73652e737667)](https://packagist.org/packages/developifynet/sms4connect-php)

This composer package offers a quick SMS setup for your php or Laravel applications.

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

[](#installation)

Begin by pulling in the package through Composer.

```
composer require developifynet/sms4connect-php
```

Laravel Framework Usage
-----------------------

[](#laravel-framework-usage)

Within your controllers, you can call Sms4Connect facade and can send quick SMS.

#### Send SMS

[](#send-sms)

##### Send SMS for Single Number

[](#send-sms-for-single-number)

```
use Developifynet\Sms4Connect\Sms4Connect;
public function index()
{
    $SMSObj = array(
        'id' => '',               // Use your account id here
        'password' => '',   // Use your account password here
        'to' => '923XXXXXXXXX',                             // You can provide single number as string or an array of numbers
        'msg' => '',                 // Message string you want to send to provided number(s)
        'mask' => '',                   // Use a registered mask with SMS 4 Connect
        'test_mode' => '0',                                 // 0 for Production, 1 for Mocking as Test
     );

    $response = Sms4Connect::SendSMS($SMSObj);
}
```

##### Send SMS for Multiple Number

[](#send-sms-for-multiple-number)

```
use Developifynet\Sms4Connect\Sms4Connect;
public function index()
{
    $SMSObj = array(
        'id' => '',               // Use your account id here
        'password' => '',   // Use your account password here
        'to' => ['923XXXXXXXXX', '923XXXXXXXXX'],,          // You can provide single number as string or an array of numbers
        'msg' => '',                 // Message string you want to send to provided number(s)
        'mask' => '',                   // Use a registered mask with SMS 4 Connect
        'test_mode' => '0',                                 // 0 for Production, 1 for Mocking as Test
     );

    $response = Sms4Connect::SendSMS($SMSObj);
}
```

#### Check Delivery Status

[](#check-delivery-status)

##### Check Status for Single Transaction

[](#check-status-for-single-transaction)

```
use Developifynet\Sms4Connect\Sms4Connect;
public function index()
{
    $SMSObj = array(
        'id' => '',               // Use your account id here
        'password' => '',   // Use your account password here
        'transaction' => 'XXXXXXXXX',                       // You can provide single sms transaction id as string or an array of numbers
        'test_mode' => '0',                                 // 0 for Production, 1 for Mocking as Test
    );

    $sms4connect = new Sms4ConnectSMS::checkDeliveryStatus($SMSObj);
}
```

##### Check Status for Multiple Transaction

[](#check-status-for-multiple-transaction)

```
use Developifynet\Sms4Connect\Sms4Connect;
public function index()
{
    $SMSObj = array(
        'id' => '',               // Use your account id here
        'password' => '',   // Use your account password here
        'transaction' => ['XXXXXXXXX', 'XXXXXXXXX'],        // You can provide single sms transaction id as string or an array of numbers
        'test_mode' => '0',                                 // 0 for Production, 1 for Mocking as Test
    );

    $sms4connect = new Sms4ConnectSMS::checkDeliveryStatus($SMSObj);
}
```

#### Check Account Balance

[](#check-account-balance)

```
use Developifynet\Sms4Connect\Sms4Connect;
public function index()
{
    $SMSObj = array(
        'id' => '',               // Use your account id here
        'password' => '',   // Use your account password here
        'test_mode' => '0',                                 // 0 for Production, 1 for Mocking as Test
    );

    $sms4connect = new Sms4ConnectSMS::checkBalance($SMSObj);
}
```

Other Usage
-----------

[](#other-usage)

Within your controllers, you can call Sms4ConnectSMS Object and can send quick SMS.

#### Send SMS

[](#send-sms-1)

##### Send SMS for Single Number

[](#send-sms-for-single-number-1)

```
use \Developifynet\Sms4Connect\Sms4ConnectSMS;
public function index()
{
    $SMSObj = array(
        'id' => '',               // Use your account id here
        'password' => '',   // Use your account password here
        'to' => '923XXXXXXXXX',                             // You can provide single number as string or an array of numbers
        'msg' => '',                 // Message string you want to send to provided number(s)
        'mask' => '',                   // Use a registered mask with SMS 4 Connect
        'test_mode' => '0',                                 // 0 for Production, 1 for Mocking as Test
    );

    $sms4connect = new Sms4ConnectSMS();
    $response = $sms4connect->SendSMS($SMSObj);
}
```

##### Send SMS for Multiple Number

[](#send-sms-for-multiple-number-1)

```
use \Developifynet\Sms4Connect\Sms4ConnectSMS;
public function index()
{
    $SMSObj = array(
        'id' => '',               // Use your account id here
        'password' => '',   // Use your account password here
        'to' => ['923XXXXXXXXX', '923XXXXXXXXX'],,          // You can provide single number as string or an array of numbers
        'msg' => '',                 // Message string you want to send to provided number(s)
        'mask' => '',                   // Use a registered mask with SMS 4 Connect
        'test_mode' => '0',                                 // 0 for Production, 1 for Mocking as Test
     );

    $sms4connect = new Sms4ConnectSMS();
    $response = $sms4connect->SendSMS($SMSObj);
}
```

#### Check Delivery Status

[](#check-delivery-status-1)

##### Check Status for Single Transaction

[](#check-status-for-single-transaction-1)

```
use \Developifynet\Sms4Connect\Sms4ConnectSMS;
public function index()
{
    $SMSObj = array(
        'id' => '',               // Use your account id here
        'password' => '',   // Use your account password here
        'transaction' => 'XXXXXXXXX',                       // You can provide single sms transaction id as string or an array of numbers
        'test_mode' => '0',                                 // 0 for Production, 1 for Mocking as Test
    );

    $sms4connect = new Sms4ConnectSMS();
    $response = $sms4connect->checkDeliveryStatus($SMSObj);
}
```

##### Check Status for Multiple Transaction

[](#check-status-for-multiple-transaction-1)

```
use \Developifynet\Sms4Connect\Sms4ConnectSMS;
public function index()
{
    $SMSObj = array(
        'id' => '',               // Use your account id here
        'password' => '',   // Use your account password here
        'transaction' => ['XXXXXXXXX', 'XXXXXXXXX'],        // You can provide single sms transaction id as string or an array of numbers
        'test_mode' => '0',                                 // 0 for Production, 1 for Mocking as Test
    );

    $sms4connect = new Sms4ConnectSMS();
    $response = $sms4connect->checkDeliveryStatus($SMSObj);
}
```

#### Check Account Balance

[](#check-account-balance-1)

```
use \Developifynet\Sms4Connect\Sms4ConnectSMS;
public function index()
{
    $SMSObj = array(
        'id' => '',               // Use your account id here
        'password' => '',   // Use your account password here
        'test_mode' => '0',                                 // 0 for Production, 1 for Mocking as Test
    );

    $sms4connect = new Sms4ConnectSMS();
    $response = $sms4connect->checkBalance($SMSObj);
}
```

### Note

[](#note)

Provided numbers should start with Country code. A Pakistani number you have to write down as 923XXXXXXXXX

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Every ~0 days

Total

2

Last Release

2215d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e8b9e51cc0eef4c8e1d28ecb9688f27c9c698b50710617b390baad1c4487e770?d=identicon)[developify](/maintainers/developify)

---

Top Contributors

[![efficientbit](https://avatars.githubusercontent.com/u/3807256?v=4)](https://github.com/efficientbit "efficientbit (3 commits)")

---

Tags

phpapisdksmssms 4 connect

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/developifynet-sms4connect-php/health.svg)

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

553.3M7](/packages/checkout-checkout-sdk-php)[ardakilic/mutlucell

Mutlucell SMS API wrapper for sending sms text messages for Laravel

457.3k](/packages/ardakilic-mutlucell)

PHPackages © 2026

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