https://github.com/interledger/open-payments-php
https://github.com/interledger/open-payments-php
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/interledger/open-payments-php
- Owner: interledger
- License: apache-2.0
- Created: 2024-10-31T17:07:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-16T07:26:27.000Z (about 1 year ago)
- Last Synced: 2025-04-30T16:53:27.424Z (about 1 year ago)
- Language: PHP
- Size: 217 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP Open Payments SDK
## What is Open Payments?
Open Payments is an open API standard that can be implemented by account servicing entities (e.g. banks, digital wallet providers, and mobile money providers) to facilitate interoperability in the setup and completion of payments for different use cases including:
- [Web Monetization](https://webmonetization.org)
- Tipping/Donations (low value/low friction)
- eCommerce checkout
- P2P transfers
- Subscriptions
- Invoice Payments
An Open Payments server runs two sub-systems, a **resource server** which exposes APIs for performing functions against the
underlying accounts and and **authorisation server** which exposes APIs compliant with the
[GNAP](https://datatracker.ietf.org/doc/html/draft-ietf-gnap-core-protocol) standard for getting grants to access the resource server
APIs.
This repository hosts the PHP Open API Specifications of the two APIs which are published along with additional documentation at
https://openpayments.dev.
## Dependencies
- [Interledger](https://interledger.org/developers/rfcs/interledger-protocol/)
- PHP 8.3
- Sodium extension - for generating keys
- BCMath extension - for big numbers comparisons
- bakame/http-structured-fields - used in http signature
- justinrainbow/json-schema - for json schema validation
### New to Interledger?
Never heard of Interledger before? Or would you like to learn more? Here are some excellent places to start:
- [Interledger Website](https://interledger.org/)
- [Interledger Specification](https://interledger.org/developers/rfcs/interledger-protocol/)
- [Interledger Explainer Video](https://twitter.com/Interledger/status/1567916000074678272)
- [Open Payments](https://openpayments.dev/)
- [Web monetization](https://webmonetization.org/)
## Open Payments Catchup Call
Our catchup calls are open to our community. We have them every other Wednesday at 13:00 GMT, via Google Meet.
Video call link: https://meet.google.com/htd-eefo-ovn
Or dial: (DE) +49 30 300195061 and enter this PIN: 105 520 503#
More phone numbers: https://tel.meet/htd-eefo-ovn?hs=5
[Add to Google Calendar](https://calendar.google.com/calendar/event?action=TEMPLATE&tmeid=MDNjYTdhYmE5MTgwNGJhMmIxYmU0YWFkMzI2NTFmMjVfMjAyNDA1MDhUMTIwMDAwWiBjX2NqMDI3Z21oc3VqazkxZXZpMjRkOXB2bXQ0QGc&tmsrc=c_cj027gmhsujk91evi24d9pvmt4%40group.calendar.google.com&scp=ALL)
## Local Development Environment
run tests:
```
./vendor/bin/phpunit tests
```
run pint:
```
./vendor/bin/pint
```
Exdended Open Payments documentation: [Open Payments](https://openpayments.dev/)
Snippets library: [Open Payments Php Snippets](https://github.com/interledger/open-payments-php-snippets)