PHPackages                             alagaccia/skebby - 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. [API Development](/categories/api)
4. /
5. alagaccia/skebby

ActiveLibrary[API Development](/categories/api)

alagaccia/skebby
================

Skebby API

v1.0.6(6mo ago)097NLPLPHPPHP ^8.2|^8.3|^8.4

Since Oct 28Pushed 6mo ago1 watchersCompare

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

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

Laravel Skebby SMS
==================

[](#laravel-skebby-sms)

Package for using Skebby SMS gateway with Laravel projects.

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

[](#requirements)

- PHP &gt;= 7.0
- Laravel 8.x, 9.x, 10.x, or 11.x

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

[](#installation)

Install this package using Composer:

```
composer require alagaccia/skebby
```

### Publish Configuration (Optional)

[](#publish-configuration-optional)

The package will automatically register itself with Laravel. Optionally, you can publish the configuration file:

```
php artisan vendor:publish --tag=skebby-config
```

This will create `config/skebby.php` in your Laravel application.

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

[](#configuration)

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

```
SKEBBY_USER="your-skebby-username"
SKEBBY_PWD="your-skebby-password"
SKEBBY_ALIAS="your-skebby-alias"
SKEBBY_QUALITY="TI"
```

Usage
-----

[](#usage)

### Using the Facade

[](#using-the-facade)

```
use Skebby;

// Send SMS
$result = Skebby::send('1234567890', 'Hello from Laravel!');

// Get account info
$info = Skebby::getInfo();

// Get remaining credits
$remaining = Skebby::getRemaining();
```

### Using Dependency Injection

[](#using-dependency-injection)

```
use AndreaLagaccia\Skebby\Skebby;

class SmsController extends Controller
{
    public function sendSms(Skebby $skebby)
    {
        $result = $skebby->send('1234567890', 'Hello from Laravel!');
        return response()->json($result);
    }
}
```

### Direct Instantiation

[](#direct-instantiation)

```
use alagaccia\skebby\Skebby;

$skebby = new Skebby();
$result = $skebby->send('1234567890', 'Hello World!');
```

Advanced Usage
--------------

[](#advanced-usage)

### Error Handling

[](#error-handling)

The package includes comprehensive error handling with custom exceptions:

```
use alagaccia\skebby\Skebby;
use alagaccia\skebby\Exceptions\SkebbyException;

try {
    $skebby = new Skebby();
    $result = $skebby->send('1234567890', 'Hello World!');
    echo "SMS sent successfully!";
} catch (SkebbyException $e) {
    echo "SMS sending failed: " . $e->getMessage();
    // Handle specific error codes
    if ($e->getCode() == 401) {
        echo "Authentication failed - check your credentials";
    }
}
```

### Message Types

[](#message-types)

You can specify different message types when sending SMS:

```
use Skebby;

// Send with specific message type
$result = Skebby::send('1234567890', 'Hello!', Skebby::MESSAGE_CLASSIC_PLUS);

// Send with campaign name for tracking
$result = Skebby::send('1234567890', 'Hello!', null, 'Summer Campaign 2024');

// Send with both message type and campaign name
$result = Skebby::send('1234567890', 'Hello!', Skebby::MESSAGE_CLASSIC_PLUS, 'Summer Campaign 2024');

// Available message types:
// Skebby::MESSAGE_CLASSIC_PLUS  ('GP') - Classic Plus
// Skebby::MESSAGE_CLASSIC       ('TI') - Classic (default)
// Skebby::MESSAGE_BASIC         ('SI') - Basic
// Skebby::MESSAGE_EXPORT        ('EE') - Export
// Skebby::MESSAGE_ADVERTISING   ('AD') - Advertising
```

### Credit Management

[](#credit-management)

Check remaining credits for different message types:

```
use Skebby;

// Get remaining credits for current message type
$remaining = Skebby::getRemaining();

// Get remaining credits for specific message type
$remaining = Skebby::getRemaining(Skebby::MESSAGE_CLASSIC_PLUS);

// Get all remaining credits
$allCredits = Skebby::getAllRemainingCredits();
// Returns: ['GP' => 100, 'TI' => 200, 'SI' => 300, ...]
```

### Authentication Cache

[](#authentication-cache)

The package automatically caches authentication credentials for the duration of the request to improve performance:

```
use Skebby;

// Clear authentication cache if needed
Skebby::clearAuthCache();
```

Configuration Options
---------------------

[](#configuration-options)

The configuration file supports the following options:

```
return [
    'SKEBBY_USER' => env('SKEBBY_USER'),
    'SKEBBY_PWD' => env('SKEBBY_PWD'),
    'SKEBBY_ALIAS' => env('SKEBBY_ALIAS'),
    'SKEBBY_QUALITY' => env('SKEBBY_QUALITY', 'TI'), // Default message type
];
```

API Reference
-------------

[](#api-reference)

### Skebby Class Methods

[](#skebby-class-methods)

- `send(string $phone, string $message, ?string $messageType = null, ?string $campaignName = null): ?array`
- `getInfo(): ?array` - Get account information
- `getRemaining(?string $messageType = null): int` - Get remaining credits
- `getAllRemainingCredits(): array` - Get all remaining credits
- `login(): array` - Authenticate with API
- `clearAuthCache(): void` - Clear authentication cache

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance67

Regular maintenance activity

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

6

Last Release

196d ago

PHP version history (2 changes)v1.0.1PHP &gt;=7.0

v1.0.2PHP ^8.2|^8.3|^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/217d7c3137783151ef5f576207daea5fe5a3b522f9a3a04b5ac590217665a2ac?d=identicon)[alagaccia](/maintainers/alagaccia)

---

Top Contributors

[![alagaccia](https://avatars.githubusercontent.com/u/12543000?v=4)](https://github.com/alagaccia "alagaccia (1 commits)")

### Embed Badge

![Health badge](/badges/alagaccia-skebby/health.svg)

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

###  Alternatives

[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k34.0M112](/packages/darkaonline-l5-swagger)[echolabsdev/prism

A powerful Laravel package for integrating Large Language Models (LLMs) into your applications.

2.3k388.3k10](/packages/echolabsdev-prism)[sburina/laravel-whmcs-up

WHMCS API client and user provider for Laravel

271.3k](/packages/sburina-laravel-whmcs-up)

PHPackages © 2026

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