openapi-generator/samples/client/petstore/php/SwaggerClient-php
2016-02-25 14:16:40 +08:00
..
lib better handling of model (reserved keyword) 2016-02-25 14:16:40 +08:00
tests better reserved word handling for php 2016-02-25 13:16:54 +08:00
.travis.yml add .travis.yml 2016-02-20 21:54:00 +08:00
autoload.php Update sample client 2015-06-18 11:43:48 -07:00
composer.json add default version for package 2015-07-13 15:24:12 +08:00
pom.xml Code reformatting 2015-06-07 11:56:08 -04:00
README.md update php readme 2016-02-19 23:37:35 +08:00

SwaggerClient-php

Requirements

PHP 5.4.0 and later

Installation & Usage

Composer

You can install the bindings via Composer. Add this to your composer.json:

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/swagger/swagger-client.git"
    }
  ],
  "require": {
    "swagger/swagger-client": "*@dev"
  }
}

Then install via composer install

Manual Installation

If you do not wish to use Composer, you can download the latest release. Then, to use the bindings, include the autoload.php file.

    require_once('/path/to/SwaggerClient-php/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit lib/Tests

Author

apiteam@swagger.io