Download the PHP package suq/suq-k2-connect-php without Composer

On this page you can find all versions of the php package suq/suq-k2-connect-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package suq-k2-connect-php

Suq Kopokopo PHP SDK

Latest Stable Version

This is a module to assist php developers in consuming Kopokopo's API

... updated php unit and guzzle

composer require suq/suq-k2-connect-php:dev-master

Installation

You can install the PHP SDK via composer.

The recommended way to install the SDK is with Composer.

Initialisation

The package should be configured with your client id and client secret which you can get from your account on the kopokopo's app

After initialization, you can get instances of offered services as follows:

Usage

Tokens

You will need to pass an access token when sending data to Kopokopo's API.

This will return accessToken and expiresIn values

Webhooks

STK PUSH

For other usage examples check out the example app.

Services

The only supported ISO currency code at the moment is: KES

TokenService

NB: The access token is required to send subsequent requests

NB: The access token cannot be used to send subsequent requests

StkService

For more information, please read https://api-docs.kopokopo.com/#receive-payments-from-m-pesa-users-via-stk-push

PayService

For more information, please read https://api-docs.kopokopo.com/#send-money-pay

SettlementTransferService

For more information, please read api-docs#transfer

PollingService

This works the same for all requests that you get a location response.

For more information, please read api-docs#polling

SmsNotificationService

This works the same for all requests that you get a location response.

For more information, please read api-docs#transaction-sms-notifications

Responses and Results

Note: The asynchronous results are processed like webhooks.

Token Response

Webhooks

Results

Status Payloads

Error responses

For more information on the expected payloads and error codes, please read the api docs

Author

Nicollet Njora

Contributions

We welcome those with open arms just make a pull request and we will review.

Development

Run all tests:

Issues

If you find a bug, please file an issue on our issue tracker on GitHub.

License

k2-connect-php is MIT licensed. See LICENSE for details.

Change log


All versions of suq-k2-connect-php with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^7.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package suq/suq-k2-connect-php contains the following files

Loading the files please wait ....