PHP Package: cebe/php-openapi

PHP library for generating OpenAPI definitions programmatically. Easily create and manage OpenAPI specifications for your APIs.

Current Version: 1.8.0
Last Updated: 2025-05-13
PHP Requirement: >=7.1.0
Dependencies:
cebe/openapi
php-fig/http-message
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

The PHP OpenAPI library by cebe provides a comprehensive set of tools for developers to define and generate OpenAPI specifications effortlessly. With a user-friendly interface and robust functionality, this library streamlines the process of documenting APIs. By leveraging this library, developers can ensure consistent and accurate API documentation, enhancing interoperability and developer experience. Whether you are building RESTful services or web applications, PHP OpenAPI simplifies the management and generation of OpenAPI definitions, promoting API standardization and facilitating collaboration across development teams.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 1.8.0

Download Download v1.8.0

Previous Versions

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/cebe/php-openapi/1.8.0/loader.php';
require_once 'libs/cebe/openapi/{lib_version}/loader.php';
require_once 'libs/php-fig/http-message/2.0/loader.php';

use Cebe\OpenAPI\Generator;
use Psr\Http\Message\ServerRequestInterface;

$obj = new Generator();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.