Repository navigation
v0.7.2
Packaging and documentation only. No behaviour changed: every method keeps its name, arguments
and return shape, and no API or payment path was touched.
Changed
- The Composer package is
p2flux/sdk-phpand is published on Packagist, so installation is
composer require p2flux/sdk-php— norepositoriesblock and no VCS pin. The namespace,
P2Flux\, and the PSR-4 layout are unchanged; the old name was never published anywhere. composer.jsoncarries production metadata (keywords, homepage, issue/source/docs links) and
composer test, which runs the whole offline suite.- The README is a standalone entry point: install, requirements, a five-minute quickstart,
configuration, the USDC-network-fee flow, error handling and links to everything else. - The integration guide was split into one page per topic —
docs/getting-started.md,
docs/payments.md,docs/network-fee-in-usdc.md,docs/subscriptions.md,docs/refunds.mdand
docs/errors.md.docs/guide.mdis now the index. - Every example loads
vendor/autoload.phpand reads its configuration from the environment, and
fails with the missing variable's name rather than a stack trace.examples/one-time.phpis now
examples/create-payment.php.
Added
examples/verify-payment.php— server-side verification and therecoverPayment()fallback.
P2Flux sends no webhooks; this is the trust boundary, and the documentation now says so plainly.tests/examples.phpruns every example againsttests/stub-api.php, a canned API on loopback,
andtests/docs.phpchecks that every documented class, method, option and snippet still exists
and parses. Both are offline and part ofcomposer test..gitattributeskeeps the Composer dist archive to the library itself.
Install
composer require p2flux/sdk-php