PHPackages                             agyson/zenziva-sms - 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. agyson/zenziva-sms

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

agyson/zenziva-sms
==================

Zenziva - Indonesia Online SMS Gateway

162PHPCI failing

Since Apr 30Pushed 5y ago1 watchersCompare

[ Source](https://github.com/agyson/zenziva-sms)[ Packagist](https://packagist.org/packages/agyson/zenziva-sms)[ RSS](/packages/agyson-zenziva-sms/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Zenziva SMS Client
==================

[](#zenziva-sms-client)

[Zenziva](https://zenziva.net) SMS client. Read their [docs](http://www.zenziva.id/dokumentasi) for more information.

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

[](#installation)

Run [composer](http://getcomposer.org)

```
composer require agyson/zenziva-sms:dev-master
```

Usage
-----

[](#usage)

### Standalone usage

[](#standalone-usage)

Make sure you already have Zenziva account.

```
require 'vendor/autoload.php';

use Agyson\ZenzivaSms\Client as Sms;

$sms = new Sms('userkey', 'passkey');

// Simple usage
$sms->send('08123456789', 'Halo apa kabar?');

// Alternative way
$sms->to('08123456789')
    ->text('Halo apa kabar?')
    ->send();

// SMS masking
$sms->masking()->send('08123456789', 'Halo apa kabar?');

// For OTP
$sms->masking()->otp()->send('08123456789', 'This is OTP code');

// With custom sub-domain (if you choose paid for "SMS Center" plan)
$sms->subdomain('hello')
    ->to('08123456789')
    ->text('Halo apa kabar?')
    ->send();

// Change default URL
$sms->url('https://reguler.zenziva.co.id/apps/smsapi.php')
    ->to('08123456789')
    ->text('Halo')
    ->send();
```

### Use with Laravel Notification

[](#use-with-laravel-notification)

Starts from Laravel 5.3, you can use Laravel Notification feature. You need to register the service provider. Open `config/app.php`, add this line inside `providers`.

```
Agyson\ZenzivaSms\NotificationServiceProvider::class,
```

> Note: If you use Laravel 5.5 or higher, you can skip register service provider manually.

Insert this inside your `config/services.php`,

```
'zenziva' => [
    'userkey' => 'your-userkey',
    'passkey' => 'your-password',
    'subdomain' => '',
    'masking' => false,
    'scheme' => 'https',
],
```

Add this method to your `User` model (or any notifiable model),

```
public function routeNotificationForZenzivaSms()
{
    return $this->phone_number; // Depends on your users table field.
}
```

On your Notification class, add this inside via method. Like so

```
use Agyson\ZenzivaSms\NotificationChannel as ZenzivaSms;

// ...

public function via($notifiable)
{
    return [ZenzivaSms::class];
}
```

Now, we are ready to use notification feature in Laravel 5.3

```
use App\User;
use App\Notifications\PingNotification;

Route::get('/', function () {

    // Send notification to all users
    $users = User::all();
    \Notification::send($users, new PingNotification);

    // Or just to one user
    User::find(1)->notify(new PingNotification);
});
```

License
-------

[](#license)

MIT © [Agy Nurwicaksono](https://www.agyson.com)

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

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/623842d47ab8806d8c3bf3fa220c2527b091fc5b3dc32993c83eb966d4360795?d=identicon)[agyson](/maintainers/agyson)

---

Top Contributors

[![agyson](https://avatars.githubusercontent.com/u/30114396?v=4)](https://github.com/agyson "agyson (5 commits)")

### Embed Badge

![Health badge](/badges/agyson-zenziva-sms/health.svg)

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

###  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)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

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

78126.4M414](/packages/react-http)

PHPackages © 2026

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