You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+96-3Lines changed: 96 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,25 @@
1
-
# OpenAPI PHP SDK
1
+
<divalign="center">
2
+
<ahref="https://openapi.com/">
3
+
<img alt="Openapi SDK for PHP" src=".github/assets/repo-header-a3.png" >
4
+
</a>
2
5
3
-
A minimal and agnostic PHP SDK for OpenAPI, inspired by the Rust implementation. This SDK provides only the core HTTP primitives needed to interact with any OpenAPI service.
6
+
<h1>Openapi® client for PHP</h1>
7
+
<h4>The perfect starting point to integrate <ahref="https://openapi.com/">Openapi®</a> within your PHP project</h4>
A minimal and agnostic PHP SDK for Openapi, inspired by a clean client implementation. This SDK provides only the core HTTP primitives needed to interact with any Openapi service.
19
+
20
+
## Pre-requisites
21
+
22
+
Before using the Openapi Rust Client, you will need an account at [Openapi](https://console.openapi.com/) and an API key to the sandbox and/or production environment
4
23
5
24
## Features
6
25
@@ -10,6 +29,18 @@ A minimal and agnostic PHP SDK for OpenAPI, inspired by the Rust implementation.
10
29
-**HTTP Primitives**: GET, POST, PUT, DELETE, PATCH methods
11
30
-**Clean Interface**: Similar to the Rust SDK design
12
31
32
+
## What you can do
33
+
34
+
With the Openapi Rust Client, you can easily interact with a variety of services in the Openapi Marketplace. For example, you can:
35
+
36
+
- 📩 **Send SMS messages** with delivery reports and custom sender IDs
37
+
- 💸 **Process bills and payments** in real time via API
38
+
- 🧾 **Send electronic invoices** securely to the Italian Revenue Agency
39
+
- 📄 **Generate PDFs** from HTML content, including JavaScript rendering
40
+
- ✉️ **Manage certified emails** and legal communications via Italian Legalmail
41
+
42
+
For a complete list of all available services, check out the [Openapi Marketplace](https://console.openapi.com/) 🌐
43
+
13
44
## Installation
14
45
15
46
```bash
@@ -69,4 +100,66 @@ This SDK follows a minimal approach with only essential components:
69
100
70
101
- PHP 8.0 or higher
71
102
- cURL extension
72
-
- JSON extension
103
+
- JSON extension
104
+
105
+
## Examples
106
+
107
+
You can find complete examples in the `examples/` directory:
108
+
109
+
-`examples/token_generation.rs` - Token generation example
110
+
-`examples/api_calls.rs` - API calls example
111
+
112
+
Run examples with:
113
+
114
+
```bash
115
+
cargo run --example token_generation
116
+
cargo run --example api_calls
117
+
```
118
+
119
+
## Testing
120
+
121
+
Run tests with:
122
+
123
+
```bash
124
+
cargo test
125
+
```
126
+
127
+
128
+
## Contributing
129
+
130
+
Contributions are always welcome! Whether you want to report bugs, suggest new features, improve documentation, or contribute code, your help is appreciated.
131
+
132
+
See [docs/contributing.md](docs/contributing.md) for detailed instructions on how to get started. Please make sure to follow this project's [docs/code-of-conduct.md](docs/code-of-conduct.md) to help maintain a welcoming and collaborative environment.
133
+
134
+
## Authors
135
+
136
+
Meet the project authors:
137
+
138
+
- L. Paderi ([@lpaderiAltravia](https://www.github.com/lpaderiAltravia))
139
+
- Openapi Team ([@openapi-it](https://github.com/openapi-it))
140
+
141
+
## Partners
142
+
143
+
Meet our partners using Openapi or contributing to this SDK:
This project is licensed under the [MIT License](LICENSE).
159
+
160
+
The MIT License is a permissive open-source license that allows you to freely use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software, provided that the original copyright notice and this permission notice are included in all copies or substantial portions of the software.
161
+
162
+
In short, you are free to use this SDK in your personal, academic, or commercial projects, with minimal restrictions. The project is provided "as-is", without any warranty of any kind, either expressed or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and non-infringement.
163
+
164
+
For more details, see the full license text at the [MIT License page](https://choosealicense.com/licenses/mit/).
0 commit comments