|
6 | 6 | <h1>Openapi® client for PHP</h1> |
7 | 7 | <h4>The perfect starting point to integrate <a href="https://openapi.com/">Openapi®</a> within your PHP project</h4> |
8 | 8 |
|
9 | | - [](https://github.com/<username>/<repo>/actions) |
10 | | - [](https://crates.io/crates/<crate_name>) |
11 | | - [](https://docs.rs/<crate_name>) |
12 | | - [](LICENSE) |
13 | | - [](https://www.rust-lang.org/) |
| 9 | + [](https://github.com/openapi/openapi-php-sdk/actions) |
| 10 | + [](https://packagist.org/packages/openapi/openapi-sdk) |
| 11 | + [](https://packagist.org/packages/openapi/openapi-sdk) |
| 12 | + [](LICENSE) |
| 13 | + [](https://packagist.org/packages/openapi/openapi-sdk) |
14 | 14 | </div> |
15 | 15 |
|
16 | 16 | ## Overview |
@@ -106,22 +106,28 @@ This SDK follows a minimal approach with only essential components: |
106 | 106 |
|
107 | 107 | You can find complete examples in the `examples/` directory: |
108 | 108 |
|
109 | | -- `examples/token_generation.rs` - Token generation example |
110 | | -- `examples/api_calls.rs` - API calls example |
| 109 | +- `examples/token_generation.php` - OAuth token generation example |
| 110 | +- `examples/api_calls.php` - HTTP API calls example |
| 111 | +- `examples/complete_workflow.php` - End-to-end workflow example |
111 | 112 |
|
112 | 113 | Run examples with: |
113 | 114 |
|
114 | 115 | ```bash |
115 | | -cargo run --example token_generation |
116 | | -cargo run --example api_calls |
| 116 | +composer run example:token |
| 117 | +composer run example:api |
| 118 | +composer run example:complete |
117 | 119 | ``` |
118 | 120 |
|
119 | 121 | ## Testing |
120 | 122 |
|
121 | 123 | Run tests with: |
122 | 124 |
|
123 | 125 | ```bash |
124 | | -cargo test |
| 126 | +# Run all tests |
| 127 | +composer run test |
| 128 | + |
| 129 | +# Run unit tests specifically |
| 130 | +composer run test:unit |
125 | 131 | ``` |
126 | 132 |
|
127 | 133 |
|
|
0 commit comments