PHPackages                             selcom/selcom-apigw-client - 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. selcom/selcom-apigw-client

ActiveLibrary[API Development](/categories/api)

selcom/selcom-apigw-client
==========================

Client library to help access selcom apis

v1.0.5(3y ago)54.5k↓33.3%3PHP

Since Feb 25Pushed 3y agoCompare

[ Source](https://github.com/selcompaytechltd/selcom-apigw-client-php)[ Packagist](https://packagist.org/packages/selcom/selcom-apigw-client)[ RSS](/packages/selcom-selcom-apigw-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)DependenciesVersions (6)Used By (0)

Selcom API Gateway Client - PHP
===============================

[](#selcom-api-gateway-client---php)

[![](https://camo.githubusercontent.com/4abb63bf96c402f4ccdabe5292845dec0b32ecb9649d7e66c254c500712f4274/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253344253345372d626c7565)](https://camo.githubusercontent.com/4abb63bf96c402f4ccdabe5292845dec0b32ecb9649d7e66c254c500712f4274/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253344253345372d626c7565)

Homepage
--------

[](#homepage)

Description
-----------

[](#description)

This is a library containing functions that aid in the accessing of selcom api. IT is made up pf 4 functions. computeHeader

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

[](#installation)

composer require selcom/selcom-apigw-client

Usage
-----

[](#usage)

```
require_once __DIR__ .'/vendor/autoload.php';
// use modeule
use Selcom\ApigwClient\Client;
//iniiatialize new Client with values of the base url, api key and api secret
$client = new Client($baseUrl, $apiKey, $apiSecret);
// computeHeader takes an array containing data to bes submitted
// computeHeader returns an array with values for the following header fields:
//  Authorization, Timestamp, Digest, Signed-Fields
$client->computeHeader( $arrayData):

// postFuct takesa path relative to baseUrl. array containing data of query
// It performs a POST request of the submitted data to the destniation url generatingg the header internally
// IT returns a json containing the response to the request
$client->postFunc($path, $arrayData)

// getFuct takes a path relative to baseUrl. array containing data of query
// It performs a GET request adding the query to the  url and generatingg the header internally
// IT returns a json containing the response to the request
$client->getFunc($path, $arrayData)

// deletetFuct takes a path relative to baseUrl. array containing data of query
// It performs a DELETE request adding the query to the  url and generatingg the header internally
// IT returns a json containing the response to the request
$client->deleteFunc($path, $arrayData)
```

Example
-------

[](#example)

```
require_once __DIR__ .'/vendor/autoload.php';

//
use Selcom\ApigwClient\Client;

# initalize a new apiAccess instace with values of the base url, api key and api secret

$apiKey = '202cb962ac59075b964b07152d234b70';
$apiSecret = '81dc9bdb52d04dc20036dbd8313ed055';
$baseUrl = "http://example.com";

$client = new Client($baseUrl, $apiKey, $apiSecret);

//order data
$orderArray = array(
"vendor"=>"VENDORTILL",
"order_id"=>"1218d5Qb",
"buyer_email"=> "john@example.com",
"buyer_name"=> "John Joh",
"buyer_phone"=> "255682555555",
"amount"=>  8000,
"currency"=>"TZS",
"buyer_remarks"=>"None",
"merchant_remarks"=>"None",
"no_of_items"=>  1

)

// path relatiive to base url
$orderPath = "/v1/checkout/create-order-minimal"
// crate new order

$response = $client->postFunc($orderPath,$orderArray);

echo json_encode($response);
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

Total

5

Last Release

1177d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7bafb0ef5aa67e6ac28e92e69c94d1f54add2e2324a7305fe131faad12f2b287?d=identicon)[selcomdev](/maintainers/selcomdev)

---

Top Contributors

[![gradoMabachi](https://avatars.githubusercontent.com/u/126318320?v=4)](https://github.com/gradoMabachi "gradoMabachi (12 commits)")

### Embed Badge

![Health badge](/badges/selcom-selcom-apigw-client/health.svg)

```
[![Health](https://phpackages.com/badges/selcom-selcom-apigw-client/health.svg)](https://phpackages.com/packages/selcom-selcom-apigw-client)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

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

PHP wrapper for the Meilisearch API

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

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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