seatplus/esi-client

A standalone ESI (Eve Swagger Interface) Client Library using kevinrob/guzzle-cache-middleware

Fund package maintenance!
seatplus

3.0.0 2024-09-28 13:11 UTC

This package is auto-updated.

Last update: 2024-10-30 20:15:38 UTC


README

Latest Stable Version Tests Formats Maintainability Test Coverage Total Downloads License

A standalone ESI (Eve Swagger Interface) Client Library using kevinrob/guzzle-cache-middleware.

Installation

You can install the package via composer:

composer require seatplus/esi-client

Usage

$esi = new Seatplus\EsiClient\EsiClient();

$esi->setVersion('v5'); // if you do not set a version, esi-client is using '/latest'

// make a call
$character_info = $esi->invoke('get', '/characters/{character_id}/', [
    'character_id' => 95725047,
]);

echo $character_info;

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

As of today this esi client only supports Laravel Cache Middleware. However Kevinrob/guzzle-cache-middleware supports various others such as:

  • Doctrine cache
  • Laravel cache
  • Flysystem
  • PSR6
  • WordPress Object Cache

if you plan to use this client with any of these a proper CacheMiddleware would be needed. Same goes to the HTTP client. This client and its cache middleware had been designed to use with Guzzle7 (but you can use it with any PSR-7 HTTP client). Please submit your PR accordingly implementing other HTTP clients.

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.