Download the PHP package seatplus/esi-client without Composer

On this page you can find all versions of the php package seatplus/esi-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package esi-client

Esi-Client

Latest Stable Version Tests Formats Maintainability Test Coverage Total Downloads License

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

Requires PHP 8.5.

ESI compatibility date: not configured here. It is read from seatplus/esi-schema's GeneratedSpec::COMPATIBILITY_DATE and sent as X-Compatibility-Date on every request, so the generated response DTOs and the shape the server returns cannot disagree. Override it with new EsiConfiguration(compatibilityDate: '…'), or pass null to omit the header and let ESI apply its own default. ESI validates the header and answers 400 for a malformed or out-of-range date, so a typo fails every request.

esi-schema tags a new major for each breaking ESI spec sync, and this branch accepts that range (^4.1 || ^5.0), so composer update can move the compatibility date without an esi-client release. To see the date you are actually sending:

Pin esi-schema in your own composer.json if you need it frozen.

esi-client PHP (declared) PHP (tested) esi-schema ESI compatibility date status
5.x ^8.5 8.5 ^4.1 \|\| ^5.0 from esi-schema — 2026-07-21 on 4.1.0, 2026-08-04 on 5.0.0 active
4.x ^8.3 8.5 only ^1.3 2025-12-16 (hardcoded) bug fixes only

4.x declares php: ^8.3, but its require-dev pins pestphp/pest ^5.0, which needs php ^8.4 — composer install of 4.x fails on 8.3 and CI never tests below 8.5. Consumers are unaffected, since dev dependencies are not installed for them, but that 8.3 floor is unverified.

Installation

You can install the package via composer:

Usage

Typed SDK (recommended)

The SDK exposes typed resource methods. Single-object endpoints return the DTO directly (a subclass of AbstractEsiDto); paginated list endpoints return EsiResult<array<T>>.

Low-level transport

Caching

There is no response cache by default. EsiConfiguration::$cacheMiddleware defaults to NullCacheMiddleware, which stores nothing; you opt in by setting it to LaravelFileCacheMiddleware (or your own CacheMiddlewareInterface implementation).

When you do opt in, responses are cached per RFC 7234 and the key is scoped to both the caller and the compatibility date — sha256(compatibility-date | token subject | method + URI), via Seatplus\EsiClient\CacheMiddleware\Strategy\EsiPrivateCacheStrategy. The token scoping matters: ESI does not send Vary: Authorization, so an unscoped key lets two characters requesting the same authenticated URI share one entry, and a character lacking a corporation role can be served a payload another character fetched without ESI ever seeing the request it would have refused. The subject comes from the access token's JWT sub claim, which is stable across token refresh; a token that is not a readable JWT falls back to hashing the header, which isolates it but only caches for that token's lifetime. Note the claim is read without signature verification — that only helps against a caller who cannot already supply an arbitrary token.

A compatibility-date change means a one-time cold cache for the affected entries. Old entries are not deleted; on the file store, responses carrying an ETag were saved with an infinite TTL, so run php artisan cache:clear if you want the space back.

If you implement CacheMiddlewareInterface yourself, build on EsiPrivateCacheStrategy rather than Kevinrob\GuzzleCache\Strategy\PrivateCacheStrategy — otherwise your cache keeps the unscoped key and the cross-character bleed above.

Rate limiting

ESI enforces a 1800-token / 15-minute rolling window (one token consumed per request, irrespective of response code). esi-client itself does not throttle — rate limiting is handled by the consumer layer (eveapi) using Laravel Horizon throttle middleware on each queued job.

If the HTTP client receives a 420 Error Limited response, the request is retried with exponential backoff as configured on the job.

Error handling

Guzzle is an implementation detail: no GuzzleHttp\Exception\* type escapes this package. Everything it throws lives in Seatplus\EsiClient\Exceptions and implements the EsiClientException marker interface, so catch (EsiClientException $e) catches any failure originating here.

Exception Meaning
EsiRateLimitedException 429 — token bucket exhausted; $e->retryAfter seconds
EsiErrorLimitedException 420 — error limit hit; $e->retryAfter seconds
RequestFailedException Any other error response; $e->getEsiResponse() has body and headers
EsiTransportException No response at all — DNS, refused connection, TLS, timeout, redirect loop. The underlying client exception is kept as getPrevious()
ExpiredRefreshTokenException The supplied access_token is expired or expires within the minute — refresh it via UpdateRefreshTokenService
UriDataMissingException A path placeholder had no matching value

One exception is deliberately not covered: assertScope() throws Seatplus\EsiSchema\Contracts\ScopeAccessDeniedException, which belongs to esi-schema. Catch it separately if you need it.

Testing

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:

if you plan to use this client with any of these a proper CacheMiddleware would be needed. Build its strategy on Seatplus\EsiClient\CacheMiddleware\Strategy\EsiPrivateCacheStrategy so the cache key stays scoped to the caller and the compatibility date — see Caching. 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.


All versions of esi-client with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
ext-json Version *
firebase/php-jwt Version ^7.0
guzzlehttp/guzzle Version ^7.9.2
kevinrob/guzzle-cache-middleware Version ^8.0
monolog/monolog Version ^3.7
nesbot/carbon Version ^3.0
seatplus/esi-schema Version ^4.1 || ^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package seatplus/esi-client contains the following files

Loading the files please wait ...