# OpenAPIClient-php

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)


## Installation & Usage

### Requirements

PHP 7.4 and later.
Should also work with PHP 8.0.

### Composer

To install the bindings via [Composer](https://getcomposer.org/), add the following to `composer.json`:

```json
{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
    }
  ],
  "require": {
    "GIT_USER_ID/GIT_REPO_ID": "*@dev"
  }
}
```

Then run `composer install`

### Manual Installation

Download the files and include `autoload.php`:

```php
<?php
require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');
```

## Getting Started

Please follow the [installation procedure](#installation--usage) and then run the following:

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');




$apiInstance = new OpenAPI\Client\Api\DefaultApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);

try {
    $result = $apiInstance->apiDangerZonesGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->apiDangerZonesGet: ', $e->getMessage(), PHP_EOL;
}

```

## API Endpoints

All URIs are relative to *http://localhost*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*DefaultApi* | [**apiDangerZonesGet**](docs/Api/DefaultApi.md#apidangerzonesget) | **GET** /api/danger_zones | Retrieve all danger zones
*DefaultApi* | [**apiPlayerIdGet**](docs/Api/DefaultApi.md#apiplayeridget) | **GET** /api/player/{id} | Retrieve a specific player by ID
*DefaultApi* | [**apiPlayersGet**](docs/Api/DefaultApi.md#apiplayersget) | **GET** /api/players | Retrieve all players

## Models

- [ApiDangerZonesGet200ResponseInner](docs/Model/ApiDangerZonesGet200ResponseInner.md)
- [ApiPlayersGet200ResponseInner](docs/Model/ApiPlayersGet200ResponseInner.md)

## Authorization
Endpoints do not require authorization.

## Tests

To run the tests, use:

```bash
composer install
vendor/bin/phpunit
```

## Author



## About this package

This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: `1.0.0`
    - Generator version: `7.7.0`
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`
