PHPackages                             toriqahmads/sms-viro - 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. toriqahmads/sms-viro

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

toriqahmads/sms-viro
====================

A package for use SMS Viro in ease

0.1.0(5y ago)2363MITPHPPHP ^7.1

Since Oct 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/toriqahmads/sms-viro)[ Packagist](https://packagist.org/packages/toriqahmads/sms-viro)[ Docs](https://github.com/toriqahmads/sms-viro)[ RSS](/packages/toriqahmads-sms-viro/feed)WikiDiscussions master Synced 1mo ago

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

SMS Viro Package for PHP Application
====================================

[](#sms-viro-package-for-php-application)

[![Latest Version on Packagist](https://camo.githubusercontent.com/cc5333de08e681dc837af31b21f7f790e828f8408ece1e07e59d66947f2fbf16/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f72697161686d6164732f736d732d7669726f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/toriqahmads/sms-viro)[![Build Status](https://camo.githubusercontent.com/c1c58369a9018c89f288d42502d3c670375f0712c6302c77acfd77f5b62480cb/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f746f72697161686d6164732f736d732d7669726f2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/toriqahmads/sms-viro)[![Quality Score](https://camo.githubusercontent.com/eab205cc65902f06e1d2dff1e8730984a0f45c8b40851d4d2f6e8003410f93dc/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f746f72697161686d6164732f736d732d7669726f2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/toriqahmads/sms-viro)[![Total Downloads](https://camo.githubusercontent.com/fcb1934b53f4da3f8e5a679a433266175e1d6b402c10c8513a7ffd860376c458/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f72697161686d6164732f736d732d7669726f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/toriqahmads/sms-viro)

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

[](#installation)

You can install the package via composer:

```
composer require toriqahmads/sms-viro
```

Usage
-----

[](#usage)

Create an instance of class, pass apikey and sender name

```
use Toriqahmads\SmsViro\SmsViro;

$smsviro = new SmsViro('707474e01fead92a7c9421a4069f21cd-12969e36-b3ef-46d8-8e93-f78804cee22d', 'YourAwesomeApp');
$smsviro->sendSms('089668639048', 'Your otp code is 6989');
var_dump($smsviro->isRequestSuccess());
```

Framework Integrations
----------------------

[](#framework-integrations)

### Laravel

[](#laravel)

#### 1. Direct in controller

[](#1-direct-in-controller)

Import package in the top of classname

```
use Toriqahmads\SmsViro\SmsViro;
```

In method/function, pass apikey and sender name on instance class. call `sendSms` to send your message

```
...
$smsviro = new SmsViro('707474e01fead92a7c9421a4069f21cd-12969e36-b3ef-46d8-8e93-f78804cee22d', 'YourAwesomeApp');
$smsviro->sendSms('089668639048', 'Your otp code is 6989');
$smsviro->isRequestSuccess();
...
```

#### 2. Dependency Injection

[](#2-dependency-injection)

Bind class on register method

```
...
use Toriqahmads\SmsViro\SmsViro;

class OptimusServiceProvider extends ServiceProvider
{
    public function register()
    {
        ...
        $this->app->singleton(SmsViro::class, function ($app) {
            return new SmsViro('707474e01fead92a7c9421a4069f21cd-12969e36-b3ef-46d8-8e93-f78804cee22d', 'YourAwesomeApp');
        });
    }
...
```

Example controller

```
...
use Toriqahmads\SmsViro\SmsViro;

class TestController extends Controller
{
    public function sendSms(SmsViro $smsviro)
    {
        $smsviro->sendSms('089668639048', 'Your otp code is 6989');
        $smsviro->isRequestSuccess();
    }
}
...
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Toriq Ahmad](https://github.com/toriqahmads)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

PHP Package Boilerplate
-----------------------

[](#php-package-boilerplate)

This package was generated using the [PHP Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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

2047d ago

### Community

Maintainers

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

---

Top Contributors

[![toriqahmads](https://avatars.githubusercontent.com/u/33996579?v=4)](https://github.com/toriqahmads "toriqahmads (16 commits)")[![toriqvoxel](https://avatars.githubusercontent.com/u/54012280?v=4)](https://github.com/toriqvoxel "toriqvoxel (5 commits)")[![yaelahan](https://avatars.githubusercontent.com/u/35204891?v=4)](https://github.com/yaelahan "yaelahan (3 commits)")

---

Tags

hacktoberfesthacktoberfest2020sms-virosmsapismsprovidersmsvirotoriqahmadssms-viro

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/toriqahmads-sms-viro/health.svg)

```
[![Health](https://phpackages.com/badges/toriqahmads-sms-viro/health.svg)](https://phpackages.com/packages/toriqahmads-sms-viro)
```

###  Alternatives

[phpro/soap-client

A general purpose SoapClient library

8885.6M46](/packages/phpro-soap-client)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[typo3/cms-reports

TYPO3 CMS Reports - Show status reports and installed services in the (System&gt;Reports) backend module.

137.1M58](/packages/typo3-cms-reports)[lcharette/uf_formgenerator

Form generator for UserFrosting V5

178.7k3](/packages/lcharette-uf-formgenerator)

PHPackages © 2026

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