digitallabs / neonet-sdk
Minimal SDK for NeoNET payment gateway
Package info
github.com/DigitalLabsAgcy/php-digitallabs-neonet-sdk
pkg:composer/digitallabs/neonet-sdk
This package is auto-updated.
Last update: 2026-03-17 00:08:27 UTC
README
xamples
This SDK includes ready-to-use PHP examples that you can copy and run directly in your own project.
examples/quick_start.php — The shortest, minimal working example that shows how to initialize the client and perform a basic sale request.
examples/full_sale_with_logging.php — A complete version that includes logging, error handling, and optional configuration settings for tracing and timeouts.
Both scripts are self-contained and demonstrate how to use the core SDK classes without requiring any external server setup.
How to Run
Install the SDK
composer require digitallabs/neonet-sdk
Run an example
php examples/quick_start.php
Or explore the detailed version:
php examples/full_sale_with_logging.php
Customize
Replace the placeholder API key and endpoint with your own credentials.
Integrate the code snippets into your own payment flow.
Best Use
Use the short example to get started fast, or the full version to understand advanced usage patterns such as:
Logging API requests and responses.
Handling exceptions gracefully.
Using optional parameters like timeouts, tracing, or metadata.
For further integration details, refer to the inline comments inside each example file.