PHPackages                             khalidsheet/oursms - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. khalidsheet/oursms

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

khalidsheet/oursms
==================

A wrapper package for sending sms

1.1.0(5y ago)11181MITPHP

Since Jun 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/khalidsheet/oursms-laravel)[ Packagist](https://packagist.org/packages/khalidsheet/oursms)[ RSS](/packages/khalidsheet-oursms/feed)WikiDiscussions main Synced 3w ago

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

Oursms laravel client
=====================

[](#oursms-laravel-client)

[![Codacy Badge](https://camo.githubusercontent.com/3dc81fbbb77c70e4f8429d52b89df59cf7711954934c58a8c1a1457457889ac5/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3334396563356265376131303463393762643138343661393731666139326538)](https://www.codacy.com/gh/khalidsheet/oursms-laravel/dashboard?utm_source=github.com&utm_medium=referral&utm_content=khalidsheet/oursms-laravel&utm_campaign=Badge_Grade)

 client library that allows you to send SMS

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

[](#installation)

Install oursms client with composer

```
  composer require khalidsheet/oursms
```

**Skip this if you are running laravel version 5.5 or later**The package will be auto-discovered

Otherwise run this command

**Step 1** - Publish the package config file under `config/oursms.php`

```
  php artisan vendor:publish --provider="Khalidsheet\Oursms\OursmsServiceProvider" --tag="config"
```

**Step 2** - Go to the application `.env` and paste these variables in the end of the file.

```
OURSMS_USER_ID=""
OURSMS_KEY=""
```

Usage/Examples
--------------

[](#usageexamples)

Import the package

```
use Khalidsheet\Oursms\Oursms
```

In your controller instantiate a new instance from `Oursms Client`

```
$oursmsClient = new Oursms();
```

If you wish to send a single message

```
$oursmsClient->sendMessage(string $to, string $message);
```

If you wish to send Otp message

```
$oursmsClient->sendOtp(string $to, string $otp);
```

If you wish to check the status of your message

```
$oursmsClient->getSmsStatus(string $messageId);
```

**Notice:** `to` is the phone number, `message` is the actuall mesasge that will be send to the user.

Trait Usage/Examples
--------------------

[](#trait-usageexamples)

Also, you can use trait to send SMS or OTP messages to a user

Add the **Messageable** trait to your model.

```
use Khalidsheet\Oursms\Traits\Messageable;

class User extends Model {
     use Messageable;

     ...
}
```

Now you can use it like this

```
$user = User::find(1);

// Sending OSM
$user->sendMessage(string $message);

// Sending OTP
$user->sendOtp(string $otp);
```

**Notice:** Trait functionality only available from version **1.1.0** or later

Authors
-------

[](#authors)

- [@khalidsheet](https://www.github.com/khalidsheet)

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

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

3

Last Release

1849d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/790c5d7b2b439f6a44b94237a96c29c3d2ae0d764360f8e9eeadc4df88012754?d=identicon)[prog98rammer](/maintainers/prog98rammer)

---

Top Contributors

[![khalidsheet](https://avatars.githubusercontent.com/u/22039209?v=4)](https://github.com/khalidsheet "khalidsheet (11 commits)")

### Embed Badge

![Health badge](/badges/khalidsheet-oursms/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[oat-sa/tao-core

TAO core extension

66143.7k122](/packages/oat-sa-tao-core)

PHPackages © 2026

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