PHPackages                             dagim/package - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. dagim/package

ActiveLibrary[HTTP &amp; Networking](/categories/http)

dagim/package
=============

A Laravel 11 package for sending SMS messages using the Yegara SMS API with built-in error handling and SSL certificate verification.

15PHP

Since May 22Pushed 1y ago2 watchersCompare

[ Source](https://github.com/Dagimassefa/Yegarahost-SMS-Package)[ Packagist](https://packagist.org/packages/dagim/package)[ RSS](/packages/dagim-package/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

SMS OTP Sender Package for Laravel
==================================

[](#sms-otp-sender-package-for-laravel)

This Laravel package facilitates sending One Time Passwords (OTPs) via SMS using the Yegara HOST API. It provides a straightforward interface to integrate OTP functionality into your Laravel applications seamlessly.

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

[](#installation)

To install this package, use Composer:

```
composer require dagim/package:dev-main
```

Configuration
-------------

[](#configuration)

After installation, add the following environment variables to your `.env` file:

```
SMS_DOMAIN=yourdomain.com
SMS_ID=your_package_id
```

Replace `yourdomain.com` with your actual domain and `your_package_id` with your package ID provided by Yegara HOST.

Usage
-----

[](#usage)

You can utilize the `sendSms` method provided by the `SmsSender` class to send OTPs via SMS.

```
use Dagim\Package\SmsSender;

$smsSender = new SmsSender();

// Provide recipient number
$recipientNumber = '##########'; // Replace with actual recipient number

// Send OTP SMS
$response = $smsSender->sendSms($recipientNumber);

echo $response;
```

Example
-------

[](#example)

```
use Dagim\Package\SmsSender;

$smsSender = new SmsSender();

// Provide test data (recipient number)
$recipientNumber = '0960171717'; // Replace with actual recipient number

// Call the sendSms method
$response = $smsSender->sendSms($recipientNumber);

echo $response;
```

Request Parameters
------------------

[](#request-parameters)

ParameterExplanation`$id`Your Package ID for your Domain at Yegara`$to`The user’s phone number you want to send the SMS to`$otp`4 - 6 digit number to send as OTP`$domain`Your Domain NameNote
----

[](#note)

- This package utilizes the Yegara HOST API for sending OTP SMS.
- Ensure that your Yegara HOST account is properly configured with the necessary package ID and domain.
- The package automatically generates a 6-digit OTP for each SMS sent.

Credits
-------

[](#credits)

This package is developed by Dagim, inspired by the need for a simple and efficient OTP SMS sender solution for Laravel applications.

License
-------

[](#license)

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

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a879c11d01ccfd757a04d53690501319aa9cbd2be329759e094abc21e2cfc5ca?d=identicon)[Dagim Assefa](/maintainers/Dagim%20Assefa)

---

Top Contributors

[![Dagimassefa](https://avatars.githubusercontent.com/u/94830418?v=4)](https://github.com/Dagimassefa "Dagimassefa (9 commits)")

### Embed Badge

![Health badge](/badges/dagim-package/health.svg)

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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