Download the PHP package php-skir/runtime without Composer
On this page you can find all versions of the php package php-skir/runtime. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download php-skir/runtime
More information about php-skir/runtime
Files in php-skir/runtime
Package runtime
Short Description PHP runtime support for Skir serialization and descriptors.
License MIT
Homepage https://github.com/php-skir/runtime
Informations about the package runtime
Laravel Skir Runtime
Framework-agnostic PHP runtime support for Skir serialization and descriptors.
This package is intentionally small. Laravel-specific routing and client behavior live in separate packages.
Installation
What it provides
DenseJsonfor encoding and decoding Skir dense JSON values.Cborhelpers for optional CBOR bodies and SkirRPC envelopes.Type,Field, andVariantdescriptors for generated DTO metadata.EnumValuefor Skir enum constants and wrapper variants.MethodDescriptorfor generated SkirRPC method metadata.- Package-local
SkirRuntimeExceptionexceptions for invalid Skir values.
Dense JSON
Struct values are encoded as field-number indexed arrays. Removed fields and sparse field numbers are preserved so generated DTOs can stay compatible with existing Skir schemas.
CBOR
CBOR support is optional and requires spomky-labs/cbor-php in the consuming app:
The runtime helper keeps CBOR wrapping shared between server and client packages:
Current scope
This runtime does not register routes, discover procedures, or make HTTP calls. Those concerns belong in the php-skir/server and php-skir/client packages.