nowo-tech / openpay-php
Clean-room PHP SDK for the public Openpay REST API. PHP 8.3+ and FrankenPHP worker-safe (no static merchant credentials).
Fund package maintenance!
v1.0.2
2026-09-07 11:29 UTC
Requires
- php: >=8.3
- ext-curl: *
- ext-json: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.64
- nowo-tech/phpstan-frankenphp: ^1.1
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^11.5
- rector/rector: ^2.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
⭐ Found this useful? Install from Packagist · Star on GitHub.
Clean-room PHP SDK for the public Openpay REST API. Namespace Nowo\Openpay\. License MIT. Release 1.0.2.
Independent implementation from public docs — not a redistribution of openpay/sdk. No process-wide static merchant credentials (FrankenPHP worker-safe).
Documentation
- Installation
- Configuration
- Usage
- Upgrading
- Security
- Coverage
- FrankenPHP demo
- Spec-driven development
- Spec Kit
- GitHub CI
- Changelog
- Code of Conduct
Quick start
use Nowo\Openpay\Client; use Nowo\Openpay\Country; use Nowo\Openpay\Credentials; use Nowo\Openpay\Session; $credentials = new Credentials( merchantId: getenv('OPENPAY_MERCHANT_ID') ?: '', privateKey: getenv('OPENPAY_PRIVATE_KEY') ?: '', country: Country::Mx, sandbox: true, ); $session = new Session($credentials); $customer = $session->run(static fn (Client $client) => $client->customers->create([ 'name' => 'Demo', 'email' => 'demo@example.test', ]));
Install
composer require nowo-tech/openpay-php:^1.0
Tests
composer test
composer test-coverage
make qa
License
MIT — see LICENSE.
Independent clean-room client for the public Openpay REST API. Not a redistribution of openpay/sdk. “Openpay” is a trademark of its owners.
