Money · Independent · 19 Oct 2026

thephpleague/omnipay

A framework agnostic, multi-gateway payment processing library for PHP 5.6+

← Money

In simple English

When you build an online shop, you need to take money from customers. Every payment service, such as PayPal or Stripe, uses a different set of rules and code. If you switch from one service to another, you usually have to rewrite all your checkout code. Omnipay acts as a single translator between your code and over a hundred different payment providers. You learn one set of commands once, and you can swap your payment provider without rewriting your store. It costs you no money, but you need to know enough PHP to install packages and write basic server code.

What it is

A framework-agnostic, multi-gateway payment processing library for PHP 5.6 and newer. It abstracts different payment provider APIs into a uniform interface using PHP and Composer (a tool for managing programming libraries in PHP).

What it is good for

Solo developers building custom shopping carts or subscription systems in PHP who want to support multiple payment processors or switch providers later without re-engineering their checkout logic.

Stars6.1k
LicenceMIT
Latestv3.2.1 (2021-06-05)checked 19 Oct 2026
Last code change2026-07-10
Written inPHP
Setup effort
2 / 5
Payoff
4 / 5
Good
  • Supports over a hundred different payment gateways with one shared command structure.
  • Swapping your payment provider requires changing only a few lines of configuration.
  • Standardizes credit card data input and validation, including Luhn checks.
Watch for
  • Requires familiarity with PHP, Composer, and server-side request handling.
  • Individual payment gateway packages are maintained by different contributors with varying quality.
  • Version 3 required a namespace change, so upgrading older codebases takes manual work.
Replaces

Writing custom integration code for every individual payment gateway API

Works well with

Composer

Similar repositories
  • stripe/stripe-php4.0k stars

    Official PHP client library specifically for Stripe, rather than supporting multiple gateways.

Also reviewed on Repo Radar
  • akaunting/akaunting10k stars

    Self-hosted invoicing and expense tracking, with the double-entry accounting sold separately as an add-on.

  • ledger/ledger6.1k stars

    Double-entry accounting from a plain text file, run from the command line, with no database of any kind.

  • spiral-project/ihatemoney1.4k stars

    A shared-expense list that works out the shortest set of payments to make everyone even.

Install
composer require league/omnipay:^3 omnipay/stripe

Independent: reviewed for Repo Radar outside the daily editions. Every independent repository

On Stack Radar: Commerce & Finance › Payments & Billing › Payment Processing.

Get the next edition in your inbox

A dozen repositories, opened and checked. The licence read, the last release dated, and the ones that did not make it named with the reason. It is the half most lists leave out.

No tracking pixels. One click to leave. The archive stays free either way.

We use your address to send the edition and nothing else. Confirm by email, leave in one click. How we handle it.