Download the PHP package eugene-erg/open-api without Composer
On this page you can find all versions of the php package eugene-erg/open-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package open-api
eugene-erg/open-api
eugene-erg/open-api
is a PHP package designed to facilitate the creation of OpenAPI configurations in an object-oriented manner. This package allows developers to define and manage OpenAPI schemas, security schemes, and other components using a clean and expressive API.
Features
- Object-Oriented Configuration: Define OpenAPI schemas, security schemes, and components using PHP classes and objects.
- Rich Schema Support: Create complex schemas for
integer
,number
,string
,boolean
,object
, anduntyped
data types. - Security Schemes: Support for multiple security schemes including
API Key
,Bearer
, andOAuth2
. - Flexible Builders: Use builder classes to create and manage schemas and security schemes.
Advantages
- Type Safety: Leverage PHP’s strong typing for more robust and error-free code.
- Readability: The object-oriented approach makes configurations more readable and maintainable.
- Extensibility: Easily extend and customize components as needed.
Comparison
Feature | eugene-erg/open-api | Other Popular Packages |
---|---|---|
Object-Oriented API | Yes | Varies (often procedural) |
Schema Definition | Yes (detailed support) | Limited or requires manual setup |
Security Scheme Configuration | Yes (OAuth2, API Key, Bearer) | Varies, often less flexible |
Builder Classes | Yes | Limited or non-existent |
Installation
To install the package, run the following command:
Usage
Creating Schemas
If an entity object is used in components and where it is required, it will be converted to a $ref.
All versions of open-api with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.3
The package eugene-erg/open-api contains the following files
Loading the files please wait ....