openapi-generator/samples/client/petstore/php/SwaggerClient-php
2015-11-22 18:35:45 +08:00
..
lib update auth for php to skip empty apikey/username,password 2015-11-22 18:35:45 +08:00
tests fix deserializing datetime, add test case 2015-08-22 23:09:12 +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 add back php unit testing and readme to PHP SwaggerClient sample code 2015-04-17 00:26:06 +08:00

Requirements

PHP 5.3.3 and later.

Composer

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

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

Then install via:

composer install

To use the bindings, use Composer's autoload:

require_once('vendor/autoload.php');

Manual Installation

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

require_once('/path/to/SwaggerPetstore-php/SwaggerPetstore.php');

Getting Started

php test.php

Documentation

TODO

Tests

In order to run tests first install PHPUnit via Composer:

composer update

To run the test suite:

./vendor/bin/phpunit tests