PHPackages                             ippanelcom/laravel-sdk - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. ippanelcom/laravel-sdk

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

ippanelcom/laravel-sdk
======================

Laravel SDK for IPPanel SMS API

1.0.5(12mo ago)267↓50%[1 issues](https://github.com/ippanelcom/laravel-sdk/issues)MITPHPPHP ^7.4|^8.0

Since May 23Pushed 12mo agoCompare

[ Source](https://github.com/ippanelcom/laravel-sdk)[ Packagist](https://packagist.org/packages/ippanelcom/laravel-sdk)[ Docs](https://github.com/ippanelcom/laravel-sdk)[ RSS](/packages/ippanelcom-laravel-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

IPPanel Laravel SDK
===================

[](#ippanel-laravel-sdk)

A Laravel package for integrating with the IPPanel SMS API.

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

[](#installation)

You can install the package via composer:

```
composer require ippanel/laravel-sdk
```

### Laravel without auto-discovery

[](#laravel-without-auto-discovery)

If you're using Laravel without auto-discovery, add the service provider to your `config/app.php` file:

```
'providers' => [
    // ...
    Ippanel\IppanelServiceProvider::class,
],

'aliases' => [
    // ...
    'IPPanel' => Ippanel\Facades\IPPanel::class,
],
```

### Publish the configuration

[](#publish-the-configuration)

Publish the configuration file using the following command:

```
php artisan vendor:publish --provider="Ippanel\IppanelServiceProvider" --tag="config"
```

This will create a `config/ippanel.php` file in your project where you can modify the configuration.

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

[](#configuration)

Add your IPPanel credentials to your `.env` file:

```
IPPANEL_API_KEY=your-api-key

```

Optionally, you can override the base URL:

```
IPPANEL_BASE_URL=https://custom-url.com/v1/api

```

Usage
-----

[](#usage)

### Send a simple message (Webservice)

[](#send-a-simple-message-webservice)

```
use Ippanel\Client;

public function sendSMS(Client $ippanel)
{
    $response = $ippanel->sendWebservice(
        'Your message content',
        '+981000xxxx', // Sender number
        ['+989123456789', '+989987654321'] // Recipients
    );

    if ($response->isSuccessful()) {
        // Message sent successfully
        $data = $response->getData();
        // Process data...
    } else {
        // Handle error
        $error = $response->getMessage();
    }
}
```

### Send a pattern message

[](#send-a-pattern-message)

```
use Ippanel\Client;

public function sendPattern(Client $ippanel)
{
    $response = $ippanel->sendPattern(
        'pattern-code',  // Your pattern code
        '+981000xxxx',   // Sender number
        '+989123456789', // Recipient
        ['name' => 'John', 'code' => '12345'] // Pattern parameters
    );

    if ($response->isSuccessful()) {
        // Pattern message sent successfully
        $data = $response->getData();
        // Process data...
    } else {
        // Handle error
    }
}
```

### Send a Voice OTP

[](#send-a-voice-otp)

```
use Ippanel\Client;

public function sendVoiceOTP(Client $ippanel)
{
    $response = $ippanel->sendVOTP(
        12345, // OTP code
        '+989123456789' // Recipient
    );

    if ($response->isSuccessful()) {
        // Voice OTP sent successfully
        $data = $response->getData();
        // Process data...
    } else {
        // Handle error
    }
}
```

Response Structure
------------------

[](#response-structure)

Each API call returns a `SendResponse` object with the following methods:

- `isSuccessful()`: Returns whether the request was successful.
- `getData()`: Returns the data part of the response.
- `getMeta()`: Returns the meta information of the response.
- `getMessage()`: Returns the message part of the meta.
- `getMessageCode()`: Returns the message code.
- `getMessageParameters()`: Returns the message parameters.

License
-------

[](#license)

MIT

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance40

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

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

5

Last Release

360d ago

### Community

Maintainers

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

---

Top Contributors

[![baladi-med](https://avatars.githubusercontent.com/u/263348205?v=4)](https://github.com/baladi-med "baladi-med (8 commits)")

---

Tags

laravelnotificationsmsIPPanel

### Embed Badge

![Health badge](/badges/ippanelcom-laravel-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/ippanelcom-laravel-sdk/health.svg)](https://phpackages.com/packages/ippanelcom-laravel-sdk)
```

###  Alternatives

[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)[gr8shivam/laravel-sms-api

A modern, flexible Laravel package for integrating any SMS gateway with REST API support

10138.4k](/packages/gr8shivam-laravel-sms-api)[ghanem/laravel-smsmisr

Send SMS and SMS Notification via SMS Misr for Laravel

194.8k](/packages/ghanem-laravel-smsmisr)[hooman-mirghasemi/laravel-iran-sms

Laravel Sms

241.8k](/packages/hooman-mirghasemi-laravel-iran-sms)

PHPackages © 2026

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