mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 11:23:58 +00:00
.. | ||
lib | ||
tests | ||
.travis.yml | ||
autoload.php | ||
composer.json | ||
pom.xml | ||
README.md |
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