PHPackages                             zepson/tigosecure - 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. zepson/tigosecure

ActiveLibrary[API Development](/categories/api)

zepson/tigosecure
=================

This is a laravel package for integration with TigoPesa online API

2.0(3y ago)112MITPHP

Since Nov 13Pushed 3y agoCompare

[ Source](https://github.com/pro-cms/tigopesa-tanzania)[ Packagist](https://packagist.org/packages/zepson/tigosecure)[ Docs](https://github.com/dbrax/tigopesa-tanzania.git)[ RSS](/packages/zepson-tigosecure/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (4)Used By (0)

[![](https://github.com/dbrax/tigopesa-tanzania/raw/master/Tigopesa%20Laravel%20Library.jpeg)](https://github.com/dbrax/tigopesa-tanzania/blob/master/Tigopesa%20Laravel%20Library.jpeg)

\# Tigopesa Secure API [![Latest Version on Packagist](https://camo.githubusercontent.com/9fb10032a0581fa0ede9539ae5e5f8d84839efa227557d5178d22ad32ce67e7d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f65706d6e7a6176612f7469676f7365637572652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/epmnzava/tigosecure)[![Total Downloads](https://camo.githubusercontent.com/03938750944896f73d539ed98774e45bb7a12664d2c6c7192878c74b5d8f7cbb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f65706d6e7a6176612f7469676f7365637572652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/epmnzava/tigosecure)[![Emmanuel Mnzava](https://camo.githubusercontent.com/15b68fe6b51c375a750cb19d7a7a707f5c317c4941a7709e499c35b510be8ac9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f417574686f722d456d6d616e75656c2532304d6e7a6176612d677265656e)](mailto:epmnzava@gmail.com)

This package is created to help developers intergrate with Tigopesa Tanzania secure online api. More information of this can be found [here](https://epmnzava.medium.com/)

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

[](#installation)

Version Matrix
--------------

[](#version-matrix)

VersionLaravelPHP Version1.0.08.0&gt;= 8.01.0.18.0&gt;= 7.3 &gt;= 8.01.0.28.0&gt;= 7.2.5 &gt;= 8.0You can install the package via composer:

```
composer require epmnzava/tigosecure
```

Update your config (for Laravel 5.4 and below)
----------------------------------------------

[](#update-your-config-for-laravel-54-and-below)

Add the service provider to the providers array in config/app.php:

```
Epmnzava\Tigosecure\TigosecureServiceProvider::class,
```

Add the facade to the aliases array in config/app.php:

```
'Tigosecure' =>\Epmnzava\Tigosecure\TigosecureFacade::class,
```

Publish the package configuration (for Laravel 5.4 and below)
-------------------------------------------------------------

[](#publish-the-package-configuration-for-laravel-54-and-below)

Publish the configuration file and migrations by running the provided console command:

```
php artisan vendor:publish --provider="Epmnzava\Tigosecure\TigosecureServiceProvider"
```

### Environmental Variables

[](#environmental-variables)

- TIGO\_CLIENT\_ID `your provided tigopesa client id`
- TIGO\_CLIENT\_SECRET `your provided tigopesa client secret`
- TIGO\_API\_URL `your provided tigopesa api url `
- TIGO\_PIN `your provided tigopesa pin number`
- TIGO\_ACCOUNT\_NUMBER `your provided tigopesa  account number`
- TIGO\_ACCOUNT\_ID `your provided tigopesa account id `
- TIGO\_REDIRECT `your  redirect url`
- TIGO\_CALLBACK `your  callback url`
- APP\_CURRENCY\_CODE `currency put TZS for Tanzanian Shillings`
- LANG ` language code  en for english and sw for swalihi`

Usage
-----

[](#usage)

This release does not come with database tables for transaction or payments you need to create then After you have filled all necessary variables , providers and facades this is how the package can be used.

On your controller

```
