Download the PHP package seatplus/esi-schema without Composer

On this page you can find all versions of the php package seatplus/esi-schema. 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-schema

seatplus/esi-schema

Packagist Version Total Downloads PHP Version CI

A fully typed PHP SDK for EVE Online's ESI API, generated from the official OpenAPI spec. Every one of the ~218 endpoints gets its own class, with its required OAuth scope, cache lifetime, rate-limit group and response shape available as typed constants and DTOs — so your IDE and PHPStan know them, instead of you looking them up.

Zero runtime dependencies. PHP 8.5+.


What problem does this solve?

ESI is EVE Online's official REST API. Calling it from PHP normally means untyped arrays and a lot of tribal knowledge that lives in documentation rather than in your code:

With this package, all of that is code:

That means a mistyped field name is a static-analysis error rather than a runtime null, and a missing OAuth scope is something you can check before dispatching a job instead of discovering from a 403.

What you get

What this is not

It does not make HTTP requests. There is no OAuth, no caching, no retry logic and no Guzzle in here — deliberately. Every endpoint takes an EsiTransportInterface, which is a single method you implement (or get from seatplus/esi-client). That keeps this package free of version conflicts and makes the whole test suite network-free.

See Implementing a Transport if you want to wire it to your own HTTP client.

Who it's for


Installation

Requirements: PHP 8.5+

Most applications will also want a transport implementation:

Related packages

Package Role
seatplus/esi-schema This package — typed endpoints, DTOs and metadata
seatplus/esi-client Transport: OAuth, RFC 7234 caching, error-limit tracking, retries
seatplus/eveapi Laravel jobs and models built on top of both

Quick Start

Two call styles are available. Choose based on context.

Option A — Direct static call (recommended for jobs and services)

Each ESI endpoint has its own generated class under src/Resources/{Tag}/:

Option B — Fluent API (convenient for interactive use and esi-client)

A generated {Tag}Resource wrapper class exists for every tag. Inject the transport once and call methods fluently:

Each {Tag}Resource method is a thin wrapper — it simply calls {OperationClass}::execute($this->transport, ...). Pre-call metadata and typed constants remain on the per-route class.

Namespace table

Resource classes are grouped by ESI tag into 36 subfolders, each with a corresponding tag-group wrapper:

Subfolder Example class Tag wrapper
Resources\Alliance GetAlliancesAllianceId AllianceResource
Resources\Assets GetCharactersCharacterIdAssets AssetsResource
Resources\Character GetCharactersCharacterId CharacterResource
Resources\Corporation GetCorporationsCorporationId CorporationResource
Resources\FactionWarfare GetFwStats FactionWarfareResource
Resources\Market GetMarketsPrices MarketResource
Resources\Universe GetUniverseTypesTypeId UniverseResource
Resources\Wallet GetCharactersCharacterIdWallet WalletResource
Resources\Skills GetCharactersCharacterIdSkills SkillsResource
… (36 total)

Per-route classes: Seatplus\EsiSchema\Resources\{Tag}\{PascalCaseOperationId}
Tag wrappers: Seatplus\EsiSchema\Resources\{Tag}Resource (e.g. Seatplus\EsiSchema\Resources\AssetsResource)

eveapi integration pattern

The intended use in queue jobs:


Implementing a Transport

All resource classes depend only on EsiTransportInterface. Implement it to connect any HTTP client:

$method always arrives as an uppercase HTTP method token — GET, POST, PUT, DELETE — as RFC 9110 §9.1 requires. Method tokens are case-sensitive, so forward it verbatim; there is no need to normalise it.

The reference implementation is seatplus/esi-client, which handles OAuth, RFC 7234 caching, error-limit tracking, and retry logic.


Architecture

Key contracts:

Class / Interface Purpose
EsiOperationInterface Contract for resource classes: static meta(): OperationMeta
EsiTransportInterface Contract for HTTP transport: invoke() → EsiRawResponse
EsiRawResponse Raw transport response: data + HTTP metadata + rate-limit state
EsiCursor Cursor pagination tokens ($before, $after)
OperationMeta Typed pre-call DTO: 7 readonly properties (no methods)
AbstractEsiDto Base DTO for single-object responses: $isCachedLoad, $pages
EsiResult<T> Typed wrapper for array/paginated endpoints
{Tag}Resource Fluent wrapper — stores transport, methods delegate to per-route statics

Design Decisions

1. Static resource classes — one class per ESI endpoint

Each ESI endpoint is represented as a pure static class (final class) rather than an instance method on a tag-grouped resource. This means:

2. Typed public constants for metadata

Each generated class exposes 7 individually typed public const declarations:

meta() simply wraps these into new OperationMeta(...). The constants are also directly accessible without any method call or allocation.

3. OperationMeta as a pure typed DTO

OperationMeta is a final readonly class with only typed constructor properties — no methods. Access its values as $meta->requiredScope, $meta->cacheAge, etc.

Token validation logic is not in this library — tokenSatisfies() was removed. Scope checks belong in eveapi, where the token models live.

4. Tag-based subfolders

The 218 resource classes live in src/Resources/{Tag}/ (36 subfolders), matching ESI's tag taxonomy:

5. Zero runtime dependencies

composer.json has no require entries (only require-dev for symfony/yaml used by the generator). The published library is pure PHP 8.5.

6. EsiTransportInterface as the sole injection boundary

All network I/O is delegated to a single invoke() method. The library knows nothing about Guzzle, cURL, OAuth tokens, or HTTP caching. Tests mock this interface — no network required.

7. The version is semver over the PHP surface; the ESI date is metadata

The library version describes this package's PHP API, not ESI's calendar. A new compatibility date is data carried by a release, not a component of the version number. See Versioning.


Versioning

seatplus/esi-schema follows plain semver over its generated PHP surface:

Bump Means
major The PHP API broke — a class, property, method or constant was removed or retyped, a property gained nullability, or a required parameter was added.
minor The PHP API grew, or the ESI compatibility date advanced without breaking anything.
patch Neither — metadata constant values (CACHE_AGE, rate limits), formatting, docs.

A new compatibility date is therefore at least a minor — it changes the X-Compatibility-Date a transport sends, which is real behaviour — but is never automatically a major.

How to pin

You want Use
Keep working, ride ESI forward (the default) ^4.0
Freeze the PHP surface, still take fixes ~4.0.0
Freeze one exact ESI compatibility date an exact version, e.g. 4.0.1

Pinning an exact version is the only honest way to pin a date: a caret constraint spans an open-ended range of future releases, so ^4.0 cannot express "the 2026-07-21 wire contract".

There are no N.x branches. Packagist serves every constraint from tags, and generated code is committed, so every compatibility date this package ever shipped remains installable at its own tag forever.

Which date am I on?

A transport must send COMPATIBILITY_DATE_HEADER: COMPATIBILITY_DATE on every request. Reading it from here rather than hard-coding a literal is what keeps the generated types and the server's response shape from disagreeing — a composer update then moves both together.

How releases happen

.github/workflows/esi-sync.yml runs daily. It regenerates against the newest published compatibility date and compares the resulting API surface manifest (.esi/surface.json) with the one in the newest semver tag:

release.yml watches main, so a bot-merged sync and a human-merged PR take the identical path to a tag. It never tags a major that no human authorised, refuses to re-tag an existing version, and afterwards checks the release is actually resolvable on Packagist.

The release:major label also raises a computed patch or minor to a major, for breakage the surface diff cannot see — a behavioural change, a corrected contract. It cannot lower a bump; that still needs a dispatch with a stated reason.

Nothing in this pipeline bypasses branch protection — the bot goes through the same required check as anyone else.

Majors are held back deliberately. Composer never force-upgrades a ^3.0 consumer to 4.0.0, but it also cannot protect anyone from a bug in the classifier publishing a removal as a minor — and a Packagist tag cannot be withdrawn.


Regenerating

Omit --compatibility-date for a local run and the newest published date is used. It is required under --strict (implied in CI) so that an unattended run can never guess which spec to build from.

The generator reads https://esi.evetech.net/meta/openapi.yaml?compatibility_date=<date> and vendors the exact bytes it consumed to .esi/openapi.yaml, so the tree can be reproduced offline:

It emits (current counts are asserted by tests/Unit/GeneratedSpecTest.php and recorded in GeneratedSpec):

Generation prunes: anything under src/Responses or src/Resources that the spec no longer describes is deleted. Without that, removed endpoints linger and no diff can ever see a removal.

Do not manually edit generated files. Changes are overwritten on next regeneration. To change generated output, edit bin/generate.php.


Testing


Contributing

See ARCHITECTURE.md for detailed design rationale.


All versions of esi-schema with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
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-schema contains the following files

Loading the files please wait ...