Download the PHP package bitpesa/bitpesa-php-sdk without Composer

On this page you can find all versions of the php package bitpesa/bitpesa-php-sdk. 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 bitpesa-php-sdk

TransferZero Client Library for PHP

This is the PHP client library for use with the TransferZero API. To use the API please register and obtain valid API keys on the TransferZero developer portal.

For more information, please visit:

This PHP package is automatically generated by the OpenAPI Generator project:

Requirements

PHP 7.1 and later

Installation & Usage

Composer

To install via Composer, run:

Then run composer install

New to Composer? Learn more at Composer's Getting Started page

Manual Installation

Download the files and include autoload.php:

Getting Started

Please follow the installation procedure and then run the following:

Authentication

Set the API Key and Secret on the Configuration object for authentication:

Example

You can find more examples in the examples directory on the features required by the Onboarding documentation

Webhooks

To parse webhooks you can use the following snippet:

Documentation for API Endpoints

All URIs are relative to https://api-sandbox.transferzero.com/v1

Class Method HTTP request Description
APILogsApi getApiLog GET /api_logs/{API Log ID} Fetch an individual API log
APILogsApi getApiLogs GET /api_logs Fetch a list of API logs
AccountDebitsApi postAccountsDebits POST /accounts/debits Creating an account debit
AccountValidationApi postAccountValidations POST /account_validations Validates the existence of a bank account or a mobile phone number
AccountsApi getAccount GET /accounts/{Currency} Fetches account balance for specified currrency
AccountsApi getAccounts GET /accounts Fetches account balances for all currencies
CurrencyInfoApi infoCurrencies GET /info/currencies Getting a list of possible requested currencies
CurrencyInfoApi infoCurrenciesIn GET /info/currencies/in Getting a list of possible input currencies
CurrencyInfoApi infoCurrenciesOut GET /info/currencies/out Getting a list of possible output currencies
DocumentsApi getDocument GET /documents/{Document ID} Fetching a document
DocumentsApi getDocuments GET /documents Getting a list of documents
DocumentsApi postDocuments POST /documents Creating a document
LogsApi getWebhookLog GET /logs/{Webhook Log ID} Fetch an individual webhook log
LogsApi getWebhookLogs GET /logs/webhooks Fetch a list of webhook logs
PayinMethodsApi deletePayinMethod DELETE /payin_methods/{PayinMethod ID} Deleting a payin method
PayinMethodsApi getPayinMethod GET /payin_methods/{PayinMethod ID} Fetching a payin method
PayinMethodsApi patchPayinMethod PATCH /payin_methods/{PayinMethod ID} Updating a payin method
PayinMethodsApi retryPayinMethod POST /payin_methods/{PayinMethod ID}/retry Retries PayinMethod
PaymentMethodsApi paymentMethodsIn GET /info/payment_methods/in This method returns possible payin methods.
PaymentMethodsApi paymentMethodsOut GET /info/payment_methods/out This method returns possible payout methods.
PayoutMethodsApi deletePayoutMethod DELETE /payout_methods/{Payout Method ID} Deleting a payout method
PayoutMethodsApi getPayoutMethod GET /payout_methods/{Payout Method ID} Fetching a payout method
PayoutMethodsApi getPayoutMethods GET /payout_methods Listing payout methods
PayoutMethodsApi patchPayoutMethod PATCH /payout_methods/{Payout Method ID} Updating a payout method
PayoutMethodsApi postPayoutMethods POST /payout_methods Creating a payout method
RecipientsApi deleteRecipient DELETE /recipients/{Recipient ID} Cancelling a recipient
RecipientsApi getRecipients GET /recipients Getting a list of recipients with filtering
RecipientsApi patchRecipient PATCH /recipients/{Recipient ID} Updating a recipient
RecipientsApi proofOfPayments GET /recipients/{Recipient ID}/proof_of_payments Returns list of proof of payments
SendersApi deleteSender DELETE /senders/{Sender ID} Deleting a sender
SendersApi getSender GET /senders/{Sender ID} Fetching a sender
SendersApi getSenders GET /senders Listing senders
SendersApi patchSender PATCH /senders/{Sender ID} Updating a sender
SendersApi postSenders POST /senders Creating a sender
TransactionsApi calculateTransactions POST /transactions/calculate Calculates transaction amounts for a transaction payload
TransactionsApi createAndFundTransaction POST /transactions/create_and_fund Creates a new transaction and funds it from account balance
TransactionsApi getTransaction GET /transactions/{Transaction ID} Fetch a single transaction
TransactionsApi getTransactions GET /transactions Get a list of transactions
TransactionsApi payinTransaction POST /transactions/{Transaction ID}/payin Creates a fake payin for transaction
TransactionsApi payoutTransaction POST /transactions/{Transaction ID}/payout Creates a fake payout for transaction
TransactionsApi postTransactions POST /transactions Creates a new transaction
TransactionsApi validateTransactions POST /transactions/validate Validates a transaction payload
WebhooksApi deleteWebhook DELETE /webhooks/{Webhook ID} Unsubscribing from a webhook
WebhooksApi getWebhook GET /webhooks/{Webhook ID} Find a webhook's details
WebhooksApi getWebhookEvents GET /webhooks/events Find possible webhook events
WebhooksApi getWebhooks GET /webhooks Listing webhooks
WebhooksApi postWebhooks POST /webhooks Creating a webhook

Documentation For Models


All versions of bitpesa-php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^7.3
guzzlehttp/psr7 Version ^2.0
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 bitpesa/bitpesa-php-sdk contains the following files

Loading the files please wait ....