PHPackages                             mane-olawale/laravel-termii - 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. mane-olawale/laravel-termii

ActiveLibrary[API Development](/categories/api)

mane-olawale/laravel-termii
===========================

A Laravel package for Termii SMS API.

v1.0.8(7mo ago)88.2k↓50%3MITPHPPHP ^7.2|^8.0CI passing

Since Feb 14Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/Mane-Olawale/laravel-termii)[ Packagist](https://packagist.org/packages/mane-olawale/laravel-termii)[ Docs](https://github.com/mane-olawale/laravel-termii)[ RSS](/packages/mane-olawale-laravel-termii/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (12)Used By (0)

 [![](https://raw.githubusercontent.com/Mane-Olawale/laravel-termii/main/larave-termii.png "Termii")](https://raw.githubusercontent.com/Mane-Olawale/laravel-termii/main/larave-termii.png)

[![Github](https://github.com/Mane-Olawale/laravel-termii/actions/workflows/tests.yml/badge.svg)](https://github.com/Mane-Olawale/laravel-termii)[![Total Downloads](https://camo.githubusercontent.com/462b34894d896f99c3fe12406ab6f055c8ef6b94d7d06506cf7e9ef39ae77b61/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d616e652d6f6c6177616c652f6c61726176656c2d7465726d6969)](https://packagist.org/packages/mane-olawale/laravel-termii)[![Latest Stable Version](https://camo.githubusercontent.com/e9028d511089e037203496f24398c36d05939f4fbde432c0d845f2bf478b509c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d616e652d6f6c6177616c652f6c61726176656c2d7465726d6969)](https://packagist.org/packages/mane-olawale/laravel-termii)[![License](https://camo.githubusercontent.com/dfdfedd80342666c22d95c3d29eeeef21942a92d3663e2f8105ee32d3eb2fcdf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d616e652d6f6c6177616c652f6c61726176656c2d7465726d6969)](https://packagist.org/packages/mane-olawale/laravel-termii)

Termii Laravel Package
======================

[](#termii-laravel-package)

A package for integrating termii services with your laravel application.

Uses [Termii Client](https://github.com/Mane-Olawale/termii).

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

[](#requirements)

- PHP ^7.2|8.0
- [Termii Client](https://github.com/Mane-Olawale/termii) ^1.2,
- Laravel ^6.0|^7.0|^8.0

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

[](#installation)

Via [Composer](https://getcomposer.org).

To get the latest version of Laravel Termii, simply run at the root of your laravel project.

```
composer require mane-olawale/laravel-termii
```

After Composer has installed the Laravel termii package, you may run the `termii:install` Artisan command. This command publishes the configuration file of the package named `termii.php`:

```
php artisan termii:install
```

Setup
-----

[](#setup)

Open your .env file and add your api key, sender id, channel and so on:

```
TERMII_API_KEY=xxxxxxxxxxxxx
TERMII_SENDER_ID=xxxxxxx
TERMII_CHANNEL=generic
TERMII_MESSAGE_TYPE=ALPHANUMERIC
TERMII_TYPE=plain

# Pin Configurations
TERMII_PIN_ATTEMPTS=10
TERMII_PIN_TIME_TO_LIVE=20
TERMII_PIN_LENGTH=6
TERMII_PIN_PLACEHOLDER="{pin}"
TERMII_PIN_TYPE=NUMERIC

# Extra
TERMII_SMS_NAME="${APP_NAME}"
TERMII_USER_AGENT="${APP_NAME}"
```

Basic usage
-----------

[](#basic-usage)

Send sms using the termii facade class

```
