PHPackages                             esiswag/esiswag - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. esiswag/esiswag

ActiveLibrary[Framework](/categories/framework)

esiswag/esiswag
===============

Swag is a PHP library for interacting with the EVE ESI API.

1.0.0(8y ago)116MITPHPPHP &gt;=7.0

Since Apr 1Pushed 8y agoCompare

[ Source](https://github.com/PrometheusSatyen/Swag)[ Packagist](https://packagist.org/packages/esiswag/esiswag)[ Docs](http://github.com/PrometheusSatyen/Swag)[ RSS](/packages/esiswag-esiswag/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

Swag
====

[](#swag)

Swag is a library for interacting with the EVE ESI/SSO/etc. APIs.

It should be depended on via Composer.

Requirements
------------

[](#requirements)

- Redis

Usage
-----

[](#usage)

```
require_once('/vendor/autoload.php');

use Swag\EsiClient;
use Swag\Config;
use Swag\Sso\Token;

Config::set('eve_client_id', 'urgay');
Config::set('eve_client_secret', 'pwnd');

$client = new EsiClient();

$token = new Token('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
$client->authenticate($token);

$response = $client->get("alliances", "v1");

foreach($response->getBody() as $allianceId) {
    echo "Alliance: {$allianceId}\n";
}
```

Request Options
---------------

[](#request-options)

- **body** - array - properties to pass in the request to esi
- **no\_cache** - bool - if set to true, will ignore any cached request and force request from ccp

Legal
-----

[](#legal)

```
Copyright (c) 2018, Prometheus Satyen

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2962d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d04735bb3e130b91d2e646310495cbba6860edb9febee58a164b0d53da70499?d=identicon)[PrometheusSatyen](/maintainers/PrometheusSatyen)

---

Top Contributors

[![PrometheusSatyen](https://avatars.githubusercontent.com/u/25934696?v=4)](https://github.com/PrometheusSatyen "PrometheusSatyen (3 commits)")

---

Tags

httpclientframeworkrestweb serviceswaggeresiEVE Online

### Embed Badge

![Health badge](/badges/esiswag-esiswag/health.svg)

```
[![Health](https://phpackages.com/badges/esiswag-esiswag/health.svg)](https://phpackages.com/packages/esiswag-esiswag)
```

###  Alternatives

[eightpoints/guzzle-wsse-middleware

WSSE Middleware for Guzzle, a PHP HTTP client library and framework for building RESTful web service clients

312.1M5](/packages/eightpoints-guzzle-wsse-middleware)[gregurco/guzzle-bundle-oauth2-plugin

OAuth2 Plugin for Guzzle Bundle, a PHP HTTP client library and framework for building RESTful web service clients

13348.3k](/packages/gregurco-guzzle-bundle-oauth2-plugin)[gregurco/guzzle-bundle-cache-plugin

Cache Plugin for Guzzle Bundle, a PHP HTTP client library and framework for building RESTful web service clients

11372.1k1](/packages/gregurco-guzzle-bundle-cache-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
