Download the PHP package auto-swagger/php-swagger-generator without Composer

On this page you can find all versions of the php package auto-swagger/php-swagger-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-swagger-generator

Laravel Auto Swagger Documentation

Auto Swagger for Laravel is a package that helps you generate Swagger/OpenAPI 1.0 documentation quickly and easily for your Laravel applications.

Installation

  1. Install the package via Composer:

  2. Publish the necessary files:

Generating Documentation

To generate the OpenAPI documentation, run:

Output Format Options

The generator supports both JSON and YAML formats:

When using the default JSON format, the documentation will be accessible at: http://localhost:8000/api/documentation/json

1. All attributes must be written in controller

2. If you are using resource controller write apiResource instead resource

3. Remove unused and Deleted controller usings namespaces

Attributes

Route Documentation

To include a route in the API documentation, use the ApiSwagger attribute:

Properties:

Request Documentation

Document request parameters using ApiSwaggerRequest:

On the controller method you need use Request class for validation, if you does not do this AutoSwager will not parse RequestBody

Query Parameters

Use ApiSwaggerQuery to define filter parameters for your API endpoints:

if you need paste id Of model you need make isId parameter true

The format for each query parameter is: 'parameter_name' => 'type|required/optional|description'

Supported types:

Example of a complete endpoint with query parameters:

Response Documentation

Document API responses using ApiSwaggerResponse. You can specify the response structure in three ways:

  1. Using an array:

  2. Using an API Resource class:

  3. Using a Model class:

Resource class

Pagination Support

To implement pagination in your API documentation:

  1. Create a paginated resource class that extends PaginatedResource:

  2. Set isPagination to true in your ApiSwaggerResponse attribute:

For each reload on api/documentation route regenerate docs set environment:

Support

For support, feedback, or questions, contact the maintainer at: [email protected]


All versions of php-swagger-generator with dependencies

PHP Build Version
Package Version
Requires doctrine/annotations Version ^2.0
nikic/php-parser Version ^5.3
php Version ^8.2
symfony/yaml Version ^7.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package auto-swagger/php-swagger-generator contains the following files

Loading the files please wait ....