Download the PHP package yoonpay/yoon-php without Composer

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

yoonpay/yoon-php

PHP client for Yoon, a self-hosted payment gateway for African payment providers, with Laravel and Symfony integrations. Apache-2.0.

Requires PHP 8.2+. Works with Guzzle 7 and 8 (Laravel 10 to 13) and with Symfony 6.4 LTS and 7.x.

Plain PHP

Helpers: createPayment, getPayment, refund, createPayout, exportCsv. Every other operation of the API is on the generated API objects — $yoon->payments(), ->refunds(), ->payouts(), ->events(), ->ledger(), ->meta() — wrapped with $yoon->call(fn () => …) to turn errors into YoonException.

Laravel

The service provider and the Yoon facade are auto-discovered.

Receiving Yoon's events

The yoon.webhook middleware rejects bad signatures and stale timestamps (401), answers already-handled events with 200 without calling your controller, and remembers an event only after your controller answered 2xx. Events are unordered: act on the state in object().

Outside Laravel: Yoon\Webhook\Signature::verify($secret, $header, $rawBody) and Yoon\Webhook\Event::fromJson($rawBody).

Symfony

The bundle ships in this package (Yoon\Symfony); Symfony components are not a dependency of it, so Laravel applications never pull them. Register the bundle:

Yoon\Yoon is autowirable:

Receiving Yoon's events

Put #[YoonWebhook] on the controller (method or class) and type an argument Yoon\Webhook\Event:

Like the Laravel middleware, the bundle checks the signature over the raw body (401 if wrong or older than 300 s), answers already-handled events with 200 without calling your controller, and remembers an event id in the cache pool only after your controller answered 2xx: a controller that fails or throws gets the retry. Keep the route outside any firewall that requires a login or CSRF token. With more than one server, point webhook.cache at a shared pool (Redis, …).

Layout


All versions of yoon-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-json Version *
guzzlehttp/guzzle Version ^7.8 || ^8.0
guzzlehttp/psr7 Version ^2.6 || ^3.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 yoonpay/yoon-php contains the following files

Loading the files please wait ...