Download the PHP package devneok/neokpay-php without Composer

On this page you can find all versions of the php package devneok/neokpay-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package neokpay-php

NEOK Pay PHP SDK

Framework-independent PHP ^8.3 client for NEOK Pay Merchant API v1. It has no Laravel or Stellar dependency.

Controlled beta candidate: 1.0.0-beta.2. Not tagged or published yet. Use only the approved beta distribution. Do not start live payments merely to try the SDK; see BETA-PLAN.md.

Installation

This command becomes usable once the beta is tagged and available in your registry. It was solver-tested against local simulated beta metadata, not an existing public release. To opt into later compatible betas, use "devneok/neokpay-php:^1.0.0-beta.2@beta".

The SDK User-Agent reports the installed Composer version, including beta/development versions. Without usable metadata it reports neokpay-php/development, never an assumed stable release. An optional userAgentSuffix remains available in ClientConfig.

Provide any PSR-18 client and PSR-17 request/stream factories. For a complete Guzzle example:

Create a checkout

Use a durable, unique idempotency key. Reusing it with the same request returns the original checkout; using it with changed input raises ConflictException.

Retrieve payment state

A browser success redirect is NOT proof of payment. Fulfill only after a verified signed webhook or authenticated server-to-server retrieval. Match the stored payment ID, order reference, expected amount/currency and paid status; make fulfillment idempotent.

Amounts are decimal strings and must not be converted to floats.

Verify webhooks

The verifier checks the raw body, HMAC-SHA256 signature, and a five-minute timestamp window. Persist processed event IDs yourself for durable duplicate-event protection. It accepts unknown future event types safely; only payment.succeeded is currently emitted.

Errors and security

AuthenticationException, ValidationException, NotFoundException, ConflictException, RateLimitException, ApiException, and TransportException provide predictable failure handling. Secrets are never placed in URLs or exception messages and are redacted from config debugging.

Keep credentials out of source control, URLs and logs. Do not dump or serialize secret-bearing objects. Transport timeouts are configured on your PSR client, not through non-standard SDK options. See SECURITY.md for private reporting.

The production API base URL defaults to https://pay.neok.me/api/v1. A public sandbox credential/base-URL strategy is not yet defined server-side, so configure an alternate verified base URL only when NEOK Pay provides one.

Canonical API documentation recommendation: https://pay.neok.me/api/documentation, the existing server documentation route. Its current page documents the legacy API; it must be updated with API v1 before being advertised as v1 documentation. No new domain or documentation deployment is assumed.

Beta release steps and rollback guidance: CHANGELOG.md. CI runs PHPUnit, PHPStan and Composer validation on PHP 8.3 and 8.4 with no payment credentials.


All versions of neokpay-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
psr/http-client Version ^1.0
psr/http-factory Version ^1.1
psr/http-message Version ^1.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package devneok/neokpay-php contains the following files

Loading the files please wait ...