Download the PHP package openkos/platform without Composer

On this page you can find all versions of the php package openkos/platform. 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 platform

OpenKOS Platform

The standalone Laravel platform and plugin SDK for OpenKOS.

Plugins extend OpenKOS\Platform\Plugin\Plugin and register through the typed OpenKOSManager registries. Host applications can keep explicit plugin registration in config/platform.php or provide a PluginDiscovery implementation for external plugin packages.

The package contains no OpenKOS application models, events, persistence, frontend assets, or Spatie dependencies. Settings persistence is supplied by the host through OpenKOS\Core\Contracts\SettingsStore.

The package does not scan Composer metadata itself. Host applications own Composer discovery and provide discovered plugin class names through OpenKOS\Core\Contracts\PluginDiscovery.

Installation

Publish the optional configuration with:

Payment gateways

Payment plugins implement OpenKOS\Core\Contracts\PaymentGateway with the platform's typed payment DTOs. Amounts use integer minor units and an ISO 4217 currency code; metadata is limited to flat scalar values; gateway-specific response shapes stay inside the plugin.

PaymentStatus::Settled means the provider has settled the gateway attempt; the host application decides when that becomes a canonical OpenKOS payment. The other normalized states are Pending, Failed, Expired, and Canceled. Invalid webhook signatures throw before a normalized payment event is returned.

Gateways that support recovery from an ambiguous checkout creation may also implement the optional OpenKOS\Core\Contracts\PaymentGatewayStatusLookup contract. Its lookup returns a neutral PaymentProviderResult; the host can apply that result through the same idempotent accounting path used by webhook results. Gateways without this capability remain fully compatible.

Gateways may also implement the optional OpenKOS\\Core\\Contracts\\PaymentGatewayCurrencySupport contract to declare the currencies they support. Hosts should treat an absent implementation as unknown capability and should not advertise a currency list. The contract must return ISO 4217 currency codes and answer support checks without performing a payment or changing application state.


All versions of platform with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
composer/semver Version ^3.4
illuminate/container Version ^13.0
illuminate/contracts Version ^13.0
illuminate/events Version ^13.0
illuminate/support Version ^13.0
illuminate/validation Version ^13.0
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 openkos/platform contains the following files

Loading the files please wait ...