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.
Download openkos/platform
More information about openkos/platform
Files in openkos/platform
Package platform
Short Description The OpenKOS platform and plugin SDK.
License Apache-2.0
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
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