# thephpleague/omnipay

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

Repository: https://github.com/thephpleague/omnipay
Canonical: https://ross.abutalabs.com/products/omnipay
Homepage: http://omnipay.thephpleague.com/
Language: PHP
License: MIT
License Family: permissive
Last push: 2026-07-10T22:16:37+00:00

## Health v2 (maintenance only)
Score: 64/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 91, release rhythm 8, longevity 100
- inputs: {"age_days": 5112, "days_push": 54, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6054, forks 929 (observed 2026-08-28T04:09:34.666558+00:00)

## What it is
Omnipay is a framework-agnostic, multi-gateway payment processing library for PHP that provides a single consistent API across dozens of payment gateways like Stripe and PayPal. It is a collection of Composer packages built around the omnipay/common core, working directly with gateway HTTP APIs.

## Use cases
- process payments in php
- accept stripe payments in a php app
- support multiple payment gateways in a shopping cart
- switch payment providers without rewriting code
- charge credit cards via paypal from php
- handle refunds and voids through a unified api
- implement recurring billing in php

## When to choose
- you need one consistent API across multiple payment gateways
- you want the flexibility to swap payment providers later
- you are building a shopping cart or e-commerce platform in PHP
- you find official gateway PHP SDKs poorly designed or documented

## When to avoid
- you only ever need a single gateway and prefer its official SDK
- you need features specific to one gateway not covered by the abstraction
- your project is not written in PHP

## Facets
- artifact type: library
- maturity: stable
- function: sdk, http-client, middleware
- domain: fintech, e-commerce, web-development, apis
- platform: php
- tags: payment-processing, payment-gateways, stripe, paypal, ecommerce, framework-agnostic, web-server

## Member repositories
- thephpleague/omnipay (main) score 64

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:34.666558+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:48:54.807161+00:00, confidence not recorded.
  - readme: https://github.com/thephpleague/omnipay (fetched 2026-08-28T04:09:34.666558+00:00, sha 941018ae7901)
  - homepage: http://omnipay.thephpleague.com/ (fetched 2026-08-29T08:45:10.206677+00:00, sha feb172828e04)
  - site_page: https://omnipay.thephpleague.com/installation (fetched 2026-08-29T08:45:10.215779+00:00, sha cfa59a13751c)
  - site_page: https://omnipay.thephpleague.com/changelog (fetched 2026-08-29T08:45:10.217908+00:00, sha 0ab9564ebc2f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
