zero-to-prod/data-model-swagger

DataModels for Swagger 2.0.*

v1.0.1 2025-01-19 00:00 UTC

This package is auto-updated.

Last update: 2025-01-23 14:15:56 UTC


README

Repo GitHub Actions Workflow Status Packagist Downloads php Packagist Version License wakatime Hits-of-Code

Contents

Introduction

Requirements

  • PHP 8.1 or higher.

Installation

Install Zerotoprod\DataModelSwagger via Composer:

composer require zero-to-prod/data-model-swagger

This will add the package to your project’s dependencies and create an autoloader entry for it.

Usage

Create a DataModel from a Swagger document like this:

\Zerotoprod\DataModelSwagger\Swagger::from(json_decode($swagger_file, true))

Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page if you want to contribute.

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Commit changes (git commit -m 'Add some feature').
  4. Push to the branch (git push origin feature-branch).
  5. Create a new Pull Request.