PHPackages                             uzbek/eskiz-sms-client - 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. uzbek/eskiz-sms-client

ActiveLibrary

uzbek/eskiz-sms-client
======================

Eskiz.uz sms client

1.1.0(3mo ago)31052[4 PRs](https://github.com/professor93/eskiz-sms-client/pulls)MITPHPPHP ^8.3CI passing

Since Jun 22Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/professor93/eskiz-sms-client)[ Packagist](https://packagist.org/packages/uzbek/eskiz-sms-client)[ Docs](https://github.com/professor93/eskiz-sms-client)[ RSS](/packages/uzbek-eskiz-sms-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (14)Versions (15)Used By (0)

Eskiz.uz sms client
===================

[](#eskizuz-sms-client)

[![Latest Version on Packagist](https://camo.githubusercontent.com/01f43b25e534ec41c72dd34bcee112efbed439c79780429dce7d18cf4a966c2f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f757a62656b2f65736b697a2d736d732d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/uzbek/eskiz-sms-client)[![Total Downloads](https://camo.githubusercontent.com/d17ae0e6e65fdf58f13447749093a6a544041ac4796b06f94732ca0ad8e4ba4a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f757a62656b2f65736b697a2d736d732d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/uzbek/eskiz-sms-client)

Eskiz.uz sms client for Laravel.

Requirements
------------

[](#requirements)

- PHP 8.3+
- Laravel 11.x or 12.x

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

[](#installation)

You can install the package via composer:

```
composer require uzbek/eskiz-sms-client
```

You can publish the config file with:

```
php artisan vendor:publish --tag="eskiz-sms-client-config"
```

Add the following environment variables to your `.env` file:

```
ESKIZ_SMS_EMAIL=your-email@example.com
ESKIZ_SMS_PASSWORD=your-password
ESKIZ_SMS_FROM=4546
```

Usage
-----

[](#usage)

### Sending SMS

[](#sending-sms)

```
use Uzbek\EskizSmsClient\Facades\Sms;

// Basic usage
$response = Sms::send('998901234567', 'Hello from Laravel!');

if ($response->isOk()) {
    echo "SMS sent! ID: " . $response->id;
}

// With custom sender
$response = Sms::send('998901234567', 'Hello!', 'CustomSender');
```

### Getting User Info

[](#getting-user-info)

```
$user = Sms::user();

echo $user->name;      // User name
echo $user->email;     // User email
echo $user->balance;   // Account balance
echo $user->isActive(); // true/false
```

### Checking Limits

[](#checking-limits)

```
$limits = Sms::limits();

echo $limits->limit;           // Total limit
echo $limits->used;            // Used count
echo $limits->remaining;       // Remaining count
echo $limits->usagePercentage(); // Usage percentage (e.g., 25.5)
echo $limits->hasRemaining();  // true/false
```

### Getting Balance

[](#getting-balance)

```
$balance = Sms::balance();
```

### Refreshing Token

[](#refreshing-token)

```
Sms::refreshToken();
```

Exception Handling
------------------

[](#exception-handling)

The package throws specific exceptions for different error scenarios:

```
use Uzbek\EskizSmsClient\Exceptions\AuthenticationException;
use Uzbek\EskizSmsClient\Exceptions\RateLimitException;
use Uzbek\EskizSmsClient\Exceptions\EskizException;

try {
    $response = Sms::send('998901234567', 'Hello!');
} catch (AuthenticationException $e) {
    // Invalid credentials or token issues
} catch (RateLimitException $e) {
    // Too many requests
    $retryAfter = $e->retryAfter; // Seconds to wait
} catch (EskizException $e) {
    // Other API errors
    $response = $e->response; // Raw API response
}
```

Response Objects
----------------

[](#response-objects)

All methods return typed response objects:

- `SendResponse` - SMS send result with `id`, `status`, `message`, `phone`
- `UserResponse` - User info with `id`, `name`, `email`, `role`, `status`, `balance`, `isVip`
- `LimitResponse` - Limits info with `limit`, `used`, `remaining`, `resetAt`

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Inoyatulloh](https://github.com/professor93)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance86

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 62.2% 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 ~164 days

Recently: every ~328 days

Total

9

Last Release

107d ago

PHP version history (2 changes)1.0.0PHP ^8.1

1.1.0PHP ^8.3

### Community

Maintainers

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

---

Top Contributors

[![professor93](https://avatars.githubusercontent.com/u/5443574?v=4)](https://github.com/professor93 "professor93 (28 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (8 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (8 commits)")[![Sodiqmirzo](https://avatars.githubusercontent.com/u/65369403?v=4)](https://github.com/Sodiqmirzo "Sodiqmirzo (1 commits)")

---

Tags

laraveluzbekeskiz-sms-client

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/uzbek-eskiz-sms-client/health.svg)

```
[![Health](https://phpackages.com/badges/uzbek-eskiz-sms-client/health.svg)](https://phpackages.com/packages/uzbek-eskiz-sms-client)
```

###  Alternatives

[spatie/laravel-site-search

A site search engine

300129.1k](/packages/spatie-laravel-site-search)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-rdap

Perform RDAP queries in a Laravel app

72108.3k2](/packages/spatie-laravel-rdap)[ryangjchandler/bearer

Minimalistic token-based authentication for Laravel API endpoints.

8129.8k](/packages/ryangjchandler-bearer)[stechstudio/laravel-hubspot

A Laravel SDK for the HubSpot CRM Api

2971.0k](/packages/stechstudio-laravel-hubspot)[ralphjsmit/laravel-glide

Auto-magically generate responsive images from static image files.

4719.6k5](/packages/ralphjsmit-laravel-glide)

PHPackages © 2026

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