PHPackages                             hopeofiran/avanak-laravel - 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. hopeofiran/avanak-laravel

ActiveLibrary[API Development](/categories/api)

hopeofiran/avanak-laravel
=========================

This package helps us to use Avanak services.

v1.7.4(3y ago)1956MITPHPPHP ^5.6|^7.0|^8.0

Since Sep 6Pushed 3y ago1 watchersCompare

[ Source](https://github.com/hopeofiran/avanak-laravel)[ Packagist](https://packagist.org/packages/hopeofiran/avanak-laravel)[ RSS](/packages/hopeofiran-avanak-laravel/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (1)Versions (18)Used By (0)

Laravel Avanak API service
==========================

[](#laravel-avanak-api-service)

**This package helps us to use Avanak services.**

installation
------------

[](#installation)

> *To install from `composer` use the following command*

```
composer require hopeofiran/avanak-laravel
```

configuration `.env` file
-------------------------

[](#configuration-env-file)

> *add account information into `.env` file*

```
AVANAK_USERNAME=your_username
AVANAK_PASSWORD=your_password
```

to change default configuration
-------------------------------

[](#to-change-default-configuration)

> to access config file and change default configuration use following command

```
php artisan vendor:publish --provider=hopeofiran\avanak\Providers\AvanakProvider
```

> *or you can set config with `config($keys[,$value])` method*

```
$credit = \hopeofiran\avanak\Facades\AvanakFacade::config('username', "{$your_username}")
->config('password', "{$your_password}")
->getCredit();
```

### OR

[](#or)

```
$credit = \hopeofiran\avanak\Facades\AvanakFacade::config(['username'=>"{$your_username}", 'password' => "{$your_password}"])
->getCredit();
```

> *also you can modify `avanak` server address with `baseUrl($url)` method*

```
$credit = \hopeofiran\avanak\Facades\AvanakFacade::baseUrl("$avanak_new_address")
->getCredit();
```

How to use this package
=======================

[](#how-to-use-this-package)

### CreateCampaign method

[](#createcampaign-method)

*to create campaign use `createCampaign()` method*

```
$title              = 'example title';
$numbers            = ['0912×××6789', '0911×××1111'];
$maxTryCount        = 2;
$minuteBetweenTries = 1;
$start              = now()->addMicros(5);
$end                = now()->endOfDay();
$messageId          = 123456789;
$campaign = \hopeofiran\avanak\Facades\AvanakFacade::createCampaign($title, $numbers, $maxTryCount, $minuteBetweenTries, $start, $end, $messageId);
```

> response

```
{
  "CreateCampaignResult": 123456789
}
```

### QuickSend method

[](#quicksend-method)

> *to quick send message use `quickSend()` method*

```
$number    = '0912×××6789';
$messageId = 123456789;
$response = \hopeofiran\avanak\Facades\AvanakFacade::quickSend($number, $messageId);
```

> response

```
{
  "QuickSendResult": 123456789
}
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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 ~4 days

Recently: every ~14 days

Total

17

Last Release

1338d ago

Major Versions

V0.7.0 → V1.0.02022-09-10

PHP version history (2 changes)V0.0.1PHP &gt;=5.6,&lt;8.2

v1.7.4PHP ^5.6|^7.0|^8.0

### Community

Maintainers

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

---

Top Contributors

[![hopeofiran](https://avatars.githubusercontent.com/u/91685701?v=4)](https://github.com/hopeofiran "hopeofiran (43 commits)")

---

Tags

avanakavanak laravelavanak voice messageavanak sms

### Embed Badge

![Health badge](/badges/hopeofiran-avanak-laravel/health.svg)

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M993](/packages/statamic-cms)[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

3.0k37.6M133](/packages/darkaonline-l5-swagger)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k14.2M63](/packages/knuckleswtf-scribe)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

783.8k](/packages/scriptdevelop-whatsapp-manager)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3417.0k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

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