PHP Package: cebe/php-openapi

This PHP library provides tools for working with OpenAPI specifications, allowing developers to easily generate API documentation and client code.

Current Version: 1.7.0
Last Updated: 2022-04-20
PHP Requirement: >=7.1
Dependencies: cebe/yii2-openapi, symfony/yaml, justinrainbow/json-schema
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

PHP OpenAPI library is a comprehensive solution for managing OpenAPI specifications in PHP projects. It simplifies the process of generating API documentation, client code, and validating requests and responses. With support for the latest OpenAPI standards, this library ensures compatibility and scalability for your API projects.

🔗 View on GitHub

Download Latest Version: 1.7.0

Download Download v1.7.0

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.7.0/autoload.php';

use Cebe\OpenAPI\Reader;
use Cebe\OpenAPI\Validator;
use Cebe\OpenAPI\Generator;
use Cebe\OpenAPI\ClientCodeGenerator;
use Cebe\OpenAPI\DocumentationGenerator;


$obj = new Cebe\OpenAPI\Reader();
echo "✅ Example created successfully.";

?>

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