PHPackages                             killmails/oauth2-eve - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. killmails/oauth2-eve

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

killmails/oauth2-eve
====================

EVE Online OAuth 2.0 Client Provider for The PHP League OAuth2-Client

v2.0.2(2y ago)16271MITPHPPHP ^8.2CI passing

Since Feb 15Pushed 5mo agoCompare

[ Source](https://github.com/killmails/oauth2-eve)[ Packagist](https://packagist.org/packages/killmails/oauth2-eve)[ RSS](/packages/killmails-oauth2-eve/feed)WikiDiscussions main Synced 2mo ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (1)

EVE Online Provider for OAuth 2.0 Client
========================================

[](#eve-online-provider-for-oauth-20-client)

[![GitHub Source](https://camo.githubusercontent.com/ab4f940105fb5990b2747d13f12a5f6c5f9bd5a55aaea53290a3f6c8b8fc8fcb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d6b696c6c6d61696c732532466f61757468322d2d6576652d626c75653f7374796c653d666c61742d737175617265)](https://github.com/killmails/oauth2-eve)[![GitHub Release](https://camo.githubusercontent.com/26414928b36ca29b0899f34b338fd151211226665e4792221c35cf5a2547212b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6b696c6c6d61696c732f6f61757468322d6576653f7374796c653d666c61742d737175617265)](https://github.com/killmails/oauth2-eve/releases)[![GitHub License](https://camo.githubusercontent.com/5eb73477b92e0827887e95decffc53e8becf71a56ab46e331fa10a9714aaf84b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6b696c6c6d61696c732f6f61757468322d6576653f7374796c653d666c61742d737175617265)](LICENSE.md)[![GitHub Actions Workflow Status](https://camo.githubusercontent.com/5069d5b192d5a83719f21764209989cd877ba66bc6b8a8eb9e43738edba9fa92/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6b696c6c6d61696c732f6f61757468322d6576652f74657374732e79616d6c3f7374796c653d666c61742d737175617265)](https://github.com/killmails/oauth2-eve/actions)[![Packagist Downloads](https://camo.githubusercontent.com/c68a8d48a43ce74c6b24d0859343c03c9bb557465adbaceb4cd1d34f1973938c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b696c6c6d61696c732f6f61757468322d6576653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/killmails/oauth2-eve)

This package provides EVE Online OAuth 2.0 support for the PHP League's [OAuth 2.0 Client](https://github.com/thephpleague/oauth2-client).

Installation
------------

[](#installation)

To install, use composer:

```
composer require killmails/oauth2-eve:^2.0
```

Usage
-----

[](#usage)

Usage is the same as The League's OAuth client, using `\Killmails\OAuth2\Client\Provider\EveOnline` as the provider.

### Authorization Code Flow

[](#authorization-code-flow)

```
use Killmails\OAuth2\Client\Provider\EveOnline;

$sso = new EveOnline([
    'clientId' => '{eveonline-client-id}',
    'clientSecret' => '{eveonline-client-secret}',
    'redirectUri' => 'https://example.com/callback-url',
]);

if (empty($_GET['code'])) {
    $url = $sso->getAuthorizationUrl();
    $_SESSION['state'] = $sso->getState();

    header('Location: '.$authUrl);
} elseif (empty($_GET['state']) || ($_GET['state'] !== $_SESSION['state'])) {
    unset($_SESSION['state']);
} else {
    $token = $sso->getAccessToken('authorization_code', [
        'code' => $_GET['code']
    ]);

    $user = $sso->getResourceOwner($token);

    printf('Hello, %s (%d)', $user->getName(), $user->getId());
}
```

### Managing Scopes

[](#managing-scopes)

When creating your EVE Online authorization URL, you can specify the state and scopes your application may authorize.

```
$options = [
    'scope' => ['esi-killmails.read_killmails.v1']
];

$url = $sso->getAuthorizationUrl($options);

// ...
```

If neither are defined, the provider will utilize internal defaults.

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance50

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

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

Every ~9 days

Total

3

Last Release

801d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e3d6b92e664d44e3aa8af4fc805a54c84390211c0c9e7f907a108f206e59f28f?d=identicon)[syzio](/maintainers/syzio)

---

Top Contributors

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

---

Tags

authenticationauthorizationeveeve-onlineoauthoauth2oauth2-clientclientAuthenticationoauthoauth2authorizationEVE Onlineeve

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/killmails-oauth2-eve/health.svg)

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

###  Alternatives

[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[thenetworg/oauth2-azure

Azure Active Directory OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2509.6M48](/packages/thenetworg-oauth2-azure)[stevenmaguire/oauth2-keycloak

Keycloak OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2275.9M27](/packages/stevenmaguire-oauth2-keycloak)[patrickbussmann/oauth2-apple

Sign in with Apple OAuth 2.0 Client Provider for The PHP League OAuth2-Client

1132.5M6](/packages/patrickbussmann-oauth2-apple)

PHPackages © 2026

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