PHP Framework Routes to OpenAPI Converter
Convert PHP framework routes to OpenAPI 3.0 specifications.
Supported Frameworks
- Laravel
- Symfony
- CodeIgniter
Installation
pip install -e .
Usage
CLI
python -m php_framework_routes_to_openapi_converter.cli convert routes.json laravel openapi.json
Arguments:
routes.json- Input routes filelaravel- Framework name (laravel, symfony, codeigniter)openapi.json- Output OpenAPI file
Python
from php_framework_routes_to_openapi_converter import convert_routes_to_openapi
routes = [
{"uri": "/users", "methods": ["GET"], "name": "users.index"},
{"uri": "/users/{id}", "methods": ["GET"], "name": "users.show"},
]
spec = convert_routes_to_openapi(routes, "laravel")
Example
python example.py
Metadata
Release files for php-framework-routes-to-openapi-converter 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| php_framework_routes_to_openapi_converter-0.1.8.tar.gz | 15.3 kB | Without provenance | Details for php_framework_routes_to_openapi_converter-0.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| php_framework_routes_to_openapi_converter-0.1.8-py3-none-any.whl | Python 3 | none | any | Details for php_framework_routes_to_openapi_converter-0.1.8-py3-none-any.whl |
Total release size: 52.8 kB
Release files / php_framework_routes_to_openapi_converter-0.1.8.tar.gz
| Download URL | php_framework_routes_to_openapi_converter-0.1.8.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
717d484571fd280eeda0d900c0967f7f34e6a4981df231000256b4d32afb1149
|
|
BLAKE2b-256 checksum How to use checksums |
2e61dda7b8f41a88b7b542b1ff40d670f534e9c422612f5295ae469e94e4e811
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.8.20
|
Release files / php_framework_routes_to_openapi_converter-0.1.8-py3-none-any.whl
| Download URL | php_framework_routes_to_openapi_converter-0.1.8-py3-none-any.whl |
|---|---|
| Size | 37.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3665485a84397826e7f8d96405b065e12a621ac164d77e33980fb5d0b2ad6a57
|
|
BLAKE2b-256 checksum How to use checksums |
ac4c221b798a5203b1389f71195a402c9230144a38089306ce36c19e9c40a872
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.8.20
|
Security for php-framework-routes-to-openapi-converter 0.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.