PHPackages                             uzzairwebstudio/onewaysms - 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. uzzairwebstudio/onewaysms

ActiveLibrary[API Development](/categories/api)

uzzairwebstudio/onewaysms
=========================

A helpful wrapper for One Way SMS API.

v1.0.0(1mo ago)0133↑275%MITPHP

Since May 4Pushed 1mo agoCompare

[ Source](https://github.com/uzzairwebstudio/onewaysms)[ Packagist](https://packagist.org/packages/uzzairwebstudio/onewaysms)[ RSS](/packages/uzzairwebstudio-onewaysms/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

OneWaySMS PHP
=============

[](#onewaysms-php)

A framework-agnostic PHP wrapper for One Way SMS API. Zero dependencies.

System Requirements
-------------------

[](#system-requirements)

- PHP 8.0 or higher
- `allow_url_fopen` enabled in php.ini (uses `file_get_contents`)

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

[](#installation)

Install via Composer:

```
composer require uzzairwebstudio/onewaysms
```

Usage
-----

[](#usage)

```
use Uzzairwebstudio\Onewaysms\OneWaySMSManager;

$sms = new OneWaySMSManager(
    'API_USERNAME',
    'API_PASSWORD',
    'MT_URL',
    'CHECK_STATUS_URL',
    'CHECK_CREDIT_URL'
);

// Send SMS (MobileNo, Message, SenderID = 'INFO', LanguageType = 1)
$response = $sms->send('60121234567', 'Test message');

// Check transaction status
$status = $sms->checkStatus('MT_ID_HERE');

// Check credit balance
$credit = $sms->checkCredit();
```

Laravel Integration
-------------------

[](#laravel-integration)

In Laravel, add variables to your `.env` file:

```
ONEWAYSMS_API_USERNAME=your_username
ONEWAYSMS_API_PASSWORD=your_password
ONEWAYSMS_MT_URL=your_mt_url
ONEWAYSMS_CHECK_STATUS_URL=your_status_url
ONEWAYSMS_CHECK_CREDIT_URL=your_credit_url
```

Register singleton in `App\Providers\AppServiceProvider`:

```
use Uzzairwebstudio\Onewaysms\OneWaySMSManager;

public function register(): void
{
    $this->app->singleton(OneWaySMSManager::class, function ($app) {
        return new OneWaySMSManager(
            env('ONEWAYSMS_API_USERNAME'),
            env('ONEWAYSMS_API_PASSWORD'),
            env('ONEWAYSMS_MT_URL'),
            env('ONEWAYSMS_CHECK_STATUS_URL'),
            env('ONEWAYSMS_CHECK_CREDIT_URL')
        );
    });
}
```

Use via Dependency Injection in Controllers or Jobs:

```
use Uzzairwebstudio\Onewaysms\OneWaySMSManager;

public function __invoke(OneWaySMSManager $sms)
{
    return $sms->send('60121234567', 'Hello from Laravel');
}
```

Licensing
---------

[](#licensing)

This package is open-source software licensed under the [MIT license](LICENSE.md).

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance93

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

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

37d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/43192348?v=4)[uzzairwebstudio](/maintainers/uzzairwebstudio)[@uzzairwebstudio](https://github.com/uzzairwebstudio)

---

Top Contributors

[![uzzairwebstudio](https://avatars.githubusercontent.com/u/43192348?v=4)](https://github.com/uzzairwebstudio "uzzairwebstudio (2 commits)")[![Invokemy](https://avatars.githubusercontent.com/u/30942648?v=4)](https://github.com/Invokemy "Invokemy (1 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/uzzairwebstudio-onewaysms/health.svg)

```
[![Health](https://phpackages.com/badges/uzzairwebstudio-onewaysms/health.svg)](https://phpackages.com/packages/uzzairwebstudio-onewaysms)
```

###  Alternatives

[facebook/php-business-sdk

PHP SDK for Facebook Business

90923.5M35](/packages/facebook-php-business-sdk)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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