PHPackages                             fsi\_engine/fsi\_php\_sdk - 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. fsi\_engine/fsi\_php\_sdk

ActiveLibrary[API Development](/categories/api)

fsi\_engine/fsi\_php\_sdk
=========================

This package is an SDK for fsi engine providers endpoints

112PHP

Since Jun 1Pushed 3y ago3 watchersCompare

[ Source](https://github.com/fsi-dev/fsi-php-sdk)[ Packagist](https://packagist.org/packages/fsi_engine/fsi_php_sdk)[ RSS](/packages/fsi-engine-fsi-php-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

[![enter image description here](https://camo.githubusercontent.com/54a17b168c6d13f60ca1a67e2f681308ecf03f8786e3c045470b48d0ef36e1e8/68747470733a2f2f6673692e6e672f6173736574732f696d672f6d61696e5f6c6f676f2e706e67)](https://camo.githubusercontent.com/54a17b168c6d13f60ca1a67e2f681308ecf03f8786e3c045470b48d0ef36e1e8/68747470733a2f2f6673692e6e672f6173736574732f696d672f6d61696e5f6c6f676f2e706e67)

`PHP SDK`
=========

[](#php-sdk)

### **`Introduction`**

[](#introduction)

This package provides services for integrating provider APIs into your application in written code. The sdk was built for easy access of the providers under FSI to be easily integrated into your development codebase.

### **`API Providers`**

[](#api-providers)

This package has numerous API providers under FSI. You can find the API providers in your FSI sandbox dashboard (`https://fsi.ng/members/apis`) .

### **`Installation`**

[](#installation)

- Clone this repository: `git clone https://github.com/fsi-dev/fsi-php-sdk`
- Install the dependencies: `composer install`
- Confirm by running all tests: `composer test`

Now you're free to use this SDK to your advantage. You can now integrate the `sdk` into your application codebase.

### **`Usage`**

[](#usage)

You can easily use this `sdk` in your php/laravel local project, after cloning:

1. First, add the FSIEngine and the Meta class to your respective controller class:

    `use FsiEngine\SDK\FsiEngine;`
2. You can declare `FsiEngine` class any where in your controller class to initialize FSI Engine SDK but it's advisable to declare in your construct method for easy access across the methods in your controller class:

    ```
     use FsiEngine\SDK\FsiEngine;

     class myCustomClassName {
         public function __construct() {
             // Initialize FSI Engine
             FsiEngine::init($YOUR_SANDBOX_KEY, $DEPLOYMENT_TYPE);
         }
     }

     // init() method takes in two parameters ($YOUR_SANDBOX_KEY,  $DEPLOYMENT_TYPE):

    ```

    `$YOUR_SANDBOX_KEY` : The sandbox application key is located right inside the application sample that you created for your application. You click on the Applications section on the left menu of your dashboard to access all your applications:

    - Applicantions
        - [My Applications](https://fsi.ng/members/my-applications)

    `$DEPLOYMENT_TYPE`: This is a flag that indicates what type of deployment you're trying to use the `sdk` for. FSI Engine provides two types of deployment type:

    - Testing
    - Live

        ```
          use FsiEngine\Constants\Meta;

          Meta::TESTING_DEPLOYMENT_TYPE // This is for testing
          Meta::LIVE_DEPLOYMENT_TYPE // This is for when you want to go live

        ```

    You can use this Meta constants as your parameter value when initializing the FSI Engine SDK.
3. You can now write to any of the available API providers in the `SDK` package and send http requests:

    ```
     $processAirtimeProvider = FsiEngine::AfricasTalkingProvider()->Airtime;
     $response = $processAirtimeProvider->send($formData);

     // send() method takes in 2 parameters (array $MY_FORM_DATA, array $REQUEST_HEADER)

    ```

    `$MY_FORM_DATA` : This is the request body/parameters that would be passed through the http request.
    `$REQUEST_HEADER` : This is a set of data that is passed across to the http request header. This is in form of an `array`.

### **`Example`**

[](#example)

This is example of how you can make calls to any of the providers:

```
    use FsiEngine\Constants\Meta;
    use FsiEngine\SDK\FsiEngine;

    class myCustomClassName{

        public function __construct() {
            //Initialize FSI Engine SDK
            FsiEngine::init(Meta::TESTING_APP_KEY, Meta::TESTING_DEPLOYMENT_TYPE);
        }

        public function myCustomMethod(){
            $formData = [
                "Referenceid"           => '01',
                "RequestType"           => '01',
                "Translocation"         => '01',
                "Bvn"                   => '01139174927',
                "billerid"              => '01'

            ];

            $header = [ // Additional Headers...
                'Ocp-Apim-Subscription-Key' => 't',
                'Ocp-Apim-Trace'            => 'true',
                'Appid'                     => 69,
                'ipval'                     => 0
            ];

            $processGetBillersISWProvider = FsiEngine::SterlingBankProvider()->GetBillersISW;
            $response = $processGetBillersISWProvider->send($formData, $header);

        }
    }

```

### **`Contributing`**

[](#contributing)

Please see our [Contribution Guide](https://docs.google.com/document/d/1qOXxA8IMm4xKo1LQd8Fodrn8Hk6VL70As5YTX9w_9yo/edit?usp=sharing) for details.

### **`Security`**

[](#security)

If you discover any security-related issues, please email  instead of using the issue tracker.

### **`Contact Us`**

[](#contact-us)

In the case of security vulnerabilities, bug detection and other development queries, you can contact  and also you can call us on 08033080471.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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/cf4909345d5b231bf56bcf0723485cf59aa2a55fc2c6527835bcdbef263ef9d9?d=identicon)[fsi-dev](/maintainers/fsi-dev)

---

Top Contributors

[![fsi-dev](https://avatars.githubusercontent.com/u/90191436?v=4)](https://github.com/fsi-dev "fsi-dev (3 commits)")[![hurlatunde](https://avatars.githubusercontent.com/u/4635086?v=4)](https://github.com/hurlatunde "hurlatunde (3 commits)")[![Oyelamin](https://avatars.githubusercontent.com/u/41972465?v=4)](https://github.com/Oyelamin "Oyelamin (1 commits)")

---

Tags

composercomposer-librarycomposer-packagefsi-sdkphpsdk

### Embed Badge

![Health badge](/badges/fsi-engine-fsi-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/fsi-engine-fsi-php-sdk/health.svg)](https://phpackages.com/packages/fsi-engine-fsi-php-sdk)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M453](/packages/google-gax)

PHPackages © 2026

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