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
+102-3Lines changed: 102 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,72 @@ 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.php` - OAuth token generation example
110
+
-`examples/api_calls.php` - HTTP API calls example
111
+
-`examples/complete_workflow.php` - End-to-end workflow example
112
+
113
+
Run examples with:
114
+
115
+
```bash
116
+
composer run example:token
117
+
composer run example:api
118
+
composer run example:complete
119
+
```
120
+
121
+
## Testing
122
+
123
+
Run tests with:
124
+
125
+
```bash
126
+
# Run all tests
127
+
composer run test
128
+
129
+
# Run unit tests specifically
130
+
composer run test:unit
131
+
```
132
+
133
+
134
+
## Contributing
135
+
136
+
Contributions are always welcome! Whether you want to report bugs, suggest new features, improve documentation, or contribute code, your help is appreciated.
137
+
138
+
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.
139
+
140
+
## Authors
141
+
142
+
Meet the project authors:
143
+
144
+
- L. Paderi ([@lpaderiAltravia](https://www.github.com/lpaderiAltravia))
145
+
- Openapi Team ([@openapi-it](https://github.com/openapi-it))
146
+
147
+
## Partners
148
+
149
+
Meet our partners using Openapi or contributing to this SDK:
This project is licensed under the [MIT License](LICENSE).
165
+
166
+
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.
167
+
168
+
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.
169
+
170
+
For more details, see the full license text at the [MIT License page](https://choosealicense.com/licenses/mit/).
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to make participation in our project a harassment-free experience for everyone.
6
+
7
+
## Our Standards
8
+
9
+
Examples of positive behavior:
10
+
11
+
- Using welcoming and inclusive language
12
+
- Being respectful of differing viewpoints and experiences
13
+
- Gracefully accepting constructive criticism
14
+
- Focusing on what is best for the community
15
+
- Showing empathy toward other community members
16
+
17
+
Examples of unacceptable behavior:
18
+
19
+
- Harassment, intimidation, or discrimination
20
+
- Public or private insults and derogatory comments
21
+
- Publishing others’ private information without consent
22
+
- Any other conduct reasonably considered inappropriate
23
+
24
+
## Enforcement
25
+
26
+
Instances of unacceptable behavior may be reported by contacting the project team at `<hello@openapi.com>`. All complaints will be reviewed promptly and fairly.
27
+
28
+
## Attribution
29
+
30
+
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 2.1.
0 commit comments