Download the PHP package php-skir/client without Composer
On this page you can find all versions of the php package php-skir/client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download php-skir/client
More information about php-skir/client
Files in php-skir/client
Package client
Short Description Laravel SkirRPC client package powered by Saloon.
License MIT
Homepage https://github.com/php-skir/client
Informations about the package client
Laravel Skir Client
Laravel package for calling SkirRPC services through generated typed clients and Saloon.
Features
- Generate typed RPC clients from Skir schemas with the client generation guide.
- Use standard PHP objects, Simple Data Objects.
- Configure Laravel container resolution and matching wire codecs with the configuration and codecs guide.
- Handle failures and test without network requests.
Quick start
Install the client and standard PHP generator:
Create skir-src/admin/users.skir:
Configure the root skir.yml:
Skir owns the output directory and may replace its contents during generation.
Generate the client, configure Composer autoloading, and publish the Laravel config:
Configure the server endpoint and matching wire codec:
Call the service through the generated typed client:
Generator alternatives
Standard PHP is the dependency-light baseline. Use skir-simple-data-objects-generator for Simple Data Objects.
Documentation
- Generating clients
- Laravel Data
- Simple Data Objects
- Configuration and codecs
- Error handling and testing
All versions of client with dependencies
illuminate/contracts Version ^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
php-skir/runtime Version ^0.1@dev
saloonphp/saloon Version ^4.0
symfony/process Version ^6.4|^7.0|^8.0