Download the PHP package hyprpay/payments without Composer

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

hyprpay/payments

CI Latest Release

📦 Package: hyprpay/payments on Packagist

📖 Documentation: HyprPay docs

Requirements

Installation

Install from the package repository (or add it as a Composer path repository when developing locally):

The GatewayServiceProvider is auto-discovered. Publish the config if you want to tweak the defaults:

A self-contained, multi-gateway payment SDK for PHP. One clean interface, a factory that resolves the right driver, and a swappable HTTP transport — with ten gateways built in: CyberSource Unified Checkout, Fawry, Paymob, PayLink, PayTabs, PayPal, Mastercard Payment Gateway Services, Authorize.Net, Airwallex, and Tamara.

Quick start

The GatewayServiceProvider registers PaymentGatewayFactory (and the HttpClient and CredentialResolver ports) in the container, so inject the factory via the constructor — no service location, no new:

Prefer to swap the transport or credential source? Bind the ports in a service provider — the factory depends only on the HttpClient and CredentialResolver interfaces:

MyHttpClient and MyCredentialResolver are your own classes — each implements the port interface it is bound to (HttpClient sends the outbound gateway requests; CredentialResolver supplies the per-gateway credentials). Both bindings are optional: out of the box the SDK binds a retrying Laravel HTTP adapter (LaravelHttpClient, with optional rate-limiting/logging decorators) and a config-driven ConfigCredentialResolver, so bind only the port you want to replace.

Monitoring dashboard

An opt-in operator dashboard — off by default — mounts at /hyprpay to watch gateway activity: each gateway's health (configured vs not, test vs live, the default), headline stats and a live recent-activity feed, plus a look-up-by-reference panel that queries the gateway directly. Enable it (and, separately, the activity store that feeds the feed) via env:

Access is gated exactly like Telescope/Horizon: every request must pass the configured gateway.dashboard.middleware stack (default ['web']) and satisfy the viewHyprpay gate. The default gate allows only the local environment — open it to real operators from any service provider:

The activity store is a bounded cache ring buffer by default (no database, no migration); bind a custom PaymentActivityRepository to persist durable history instead. The view is self-contained (inline CSS/JS, no build step) and publishable with php artisan vendor:publish --tag=gateway-dashboard-views.

Gateways

Ten drivers behind one PaymentGatewayInterface: CyberSource Unified Checkout, Fawry, Paymob, PayLink, PayTabs, PayPal, Mastercard Payment Gateway Services, Authorize.Net, Airwallex, and Tamara (buy now, pay later). Operations a gateway does not support throw UnsupportedOperationException, so the same surface holds everywhere. A runnable sample per gateway and the full operation-support matrix live in the docs below.

Documentation

The hosted docs are browsable by gateway. The reference is split into focused guides:

Testing & quality

The package ships a full quality gate. From the package directory:

Tests are database-free and never hit the network — they exercise the drivers through the in-memory FakeHttpClient.

Contributing

See CONTRIBUTING.md. By participating you agree to the Code of Conduct. To report a vulnerability, follow SECURITY.md.

License

Released under the MIT License.


All versions of payments with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-json Version *
firebase/php-jwt Version ^6.10 || ^7.0
illuminate/auth Version ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/cache Version ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/console Version ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/http Version ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/log Version ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/pipeline Version ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/routing Version ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/support Version ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/view Version ^10.0 || ^11.0 || ^12.0 || ^13.0
psr/log Version ^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 hyprpay/payments contains the following files

Loading the files please wait ...