Download the PHP package elqora/pay without Composer
On this page you can find all versions of the php package elqora/pay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package pay
📦 PayKit Gateway SDK (Contracts + Payloads)
A business-agnostic, enterprise-grade Financial Infrastructure Protocol Engine that enables host PHP applications to integrate multiple payment and banking providers (Stripe, Adyen, Paystack, Flutterwave, Airwallex, Marqeta) through strict contracts and strongly-typed payloads.
🎯 What We Ship
- Strict Contracts (interfaces): 39 granular PHP interfaces defining payment, refund, payout, bulk transfer, virtual account, double-entry ledger, balance snapshot, virtual card issuing, and webhook deduplication capabilities.
- Typed Payloads (DTOs): Immutable PHP 8.2+ request, response, and event objects (zero untyped arrays for core domain operations).
- Elqora Interaction Protocol Integration: Standardized frontend-host UI flow descriptions via
elqora/interactions. - Manager & Capability Engine: DB-first driver registry and manifest resolution system for high-performance runtime filtering.
- Abstract Driver Bases: Safe defaults, reusable configuration helpers, and schema validation tools.
❌ What We Do NOT Ship
- Checkout/cart/invoice semantics (the SDK is strictly decoupled from host business domains).
- Host database schemas or migrations (hosts persist manifests and capabilities however they choose).
- Vendor-specific HTTP clients inside
src/(drivers implement contracts using Guzzle, Symfony HTTP, or custom SDKs).
Source of Truth: Only
src/is the SDK public API surface.
0) Installation & Requirements
PHP Version
Requires PHP 8.2+ with ext-json and ext-mbstring.
Composer
Namespace / Autoloading
This SDK is PSR-4 autoloaded under the Elqora\Pay\ namespace:
0.1) Laravel Integration (Service Provider Binding)
PayKit is framework-agnostic. In Laravel host applications, bind GatewayManager as a singleton in your AppServiceProvider:
1) Core Architectural Principles
1. Model-First (Host DB is Source of Truth)
Drivers discover support matrices (currencies, countries, capability flags) only during manifest synchronization, never at checkout runtime. Checkout filtering occurs in local database space without triggering high-latency third-party HTTP calls.
2. Host-Controlled Business Logic
Drivers communicate with payment vendors and report canonical statuses. The host application decides what "succeeded" means (e.g., crediting a user wallet, fulfilling an order, or releasing a digital asset).
3. Capability-by-Contract
New capabilities are introduced as discrete, isolated PHP interfaces in src/Contracts/. Feature support is verified via standard PHP runtime introspection ($driver instanceof PaymentGatewayBulkPayoutsContract).
4. Strict Typed Payloads & Idempotency
Core domain methods accept strongly-typed DTOs with explicit IdempotencyKey value objects and GatewayFailure error payloads.
2) Code Examples by Financial Domain
2.1 Core Payments & Elqora Interactions
Initiate a payment and receive a canonical status along with an Elqora Interaction (Redirect, Instructions, QrCode, Component, Mount, Script):
2.2 Outward Payouts, Sources & Typed Destinations
Route single payouts to bank accounts, mobile money wallets, cards, crypto addresses, or beneficiaries:
2.3 Bulk Payouts & Batch Transfers
Submit thousands of itemized payouts in a single batch with item-level status tracking:
2.4 Account Resolution & Destination Validation
Verify bank account numbers, IBANs, or mobile money names before payout execution:
2.5 Virtual Accounts & Compliance Identity (KYC / KYB)
Provision dedicated collection accounts or single-use payment vIBANs with structured compliance identifiers:
2.6 Balances, Double-Entry Ledgers & Internal Transfers
Inspect balance snapshots, query double-entry accounting transactions, or move funds internally:
2.7 Modular Virtual Cards & Spending Controls
Provision virtual cards, update velocity/MCC controls, process JIT webhook authorizations, or request PCI-isolated card reveal sessions:
2.8 Webhook Event Deduplication
Prevent duplicate business execution from third-party webhook retries using the framework-agnostic WebhookDeduplicator:
3) Canonical src/ Layout Sitemap
4) Driver Implementation Guide
To create a new PayKit driver (e.g. PayKitStripeDriver):
- Extend
AbstractPaymentGatewayDriver(or implementPaymentGatewayDriverContract). -
Implement capability interfaces for features your provider supports:
- Register your driver with
Pay:
📄 License
The PayKit Gateway SDK is open-sourced software licensed under the MIT license.
All versions of pay with dependencies
ext-json Version *
elqora/config-kit Version ^1.0|@dev
elqora/interactions Version ^1.0|@dev