Download the PHP package alt3/cakephp-swagger without Composer

On this page you can find all versions of the php package alt3/cakephp-swagger. 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 cakephp-swagger

cakephp-swagger

Build Status StyleCI Status Coverage Status Total Downloads

CakePHP 4.x plugin that adds auto-generated Swagger 2.0 documentation to your projects using swagger-php and swagger-ui.

Requirements

Installation

Install the plugin using composer:

Enabling

Enable the plugin in the bootstrap() method found in src/Application.php:

Also make sure that AssetMiddleware is loaded inside Application.php or all Swagger page assets will 404.

Installation check

After enabling the plugin, browsing to http://your.app/alt3/swagger should now produce the Swagger-UI interface:

Configuration

All configuration for this plugin is done through the /config/swagger.php configuration file. TLDR full example below.

UI section

Use the ui section to customize the following Swagger-UI options:

Please note that the UI will auto-load the first document found in the library.

Docs section

Use the docs section to customize the following options:

Library section

Use the library section to specify one or multiple swagger documents so:

The following library example would result in:

It would also make http://your.app/alt3/swagger/docs produce a json list with links to all available documents similar to the example below.

SwaggerShell

This plugin comes with a shell that should simplify deployment in production environments. Simply run the following command to create cakephp_swagger prefixed filesystem documents in tmp/cache for all entities found in your library.

The host argument (e.g. your.app.com) is required, should not include protocols and is used to set the host property inside your swagger documents.

Quickstart Annotation Example

Explaining swagger-php annotation voodoo is beyond this plugin but to give yourself a head start while creating your first library document you might want to copy/paste the following working example into any of your php files.

Note: the weird non-starred syntax ensures compatibility with the CakePHP Code Sniffer.

Which should result in:

Additional Reading

Contribute

Before submitting a PR make sure:


All versions of cakephp-swagger with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
cakephp/cakephp Version ^4.0
zircote/swagger-php Version ^2.0
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 alt3/cakephp-swagger contains the following files

Loading the files please wait ....