Installation — Swagger-PHP documentation

### Navigation

- next
- previous |
- Swagger-PHP documentation »

# Installation

Note

This is the documentation for (older / unsupported) swagger-php v1.x
Go to the swagger-php v3.x documentation

## Via Composer (Recommended)

First download and install Composer add zircote/swagger-php to your composer.json

    "require": {
        "zircote/swagger-php": "*"
    }

Finally run composer install to update the composer dependencies and implement the vendor/autoload.php in your
  projects bootstrap.

## Via Phar

Download the latest swagger.phar

    % php swagger.phar --help

## Manual (Unsupported)

Download/clone the source from GitHub, install Doctrine Annotations and configure a PSR compatible class loader.

### Navigation

- next
- previous |
- Swagger-PHP documentation »