Smithy PHP provides code generation and runtime libraries for building PHP clients and types from Smithy models.
Important
Smithy PHP is in developer preview. APIs may change before the first stable release.
This repository contains:
- a code generator for clients, types, operation metadata, runtime schemas, and endpoint rules
- a client runtime for endpoint resolution, authentication, retries, plugins, interceptors, and operation execution
- protocol and codec implementations for converting modeled values to and from HTTP messages
- HTTP message and HTTP client implementations
- core schema and shape types and fiber-based concurrency helpers
Note
This repository contains the generator and runtime. It does not contain generated clients for AWS or other services.
If you are new to Smithy, follow the Smithy quickstart to create and build a model.
Follow the Smithy PHP quickstart to generate a client and use it with the runnable RPCv2 CBOR PetStore example.
See the code generator guide to generate a client from a Smithy JSON AST. Each runtime component also has a README with its contracts and usage.
To install dependencies and run the test suite from a source checkout:
composer install
composer testSee the security policy to report a potential vulnerability.
This project is licensed under the Apache-2.0 License.