https://github.com/seatplus/esi-client
A standalone ESI (Eve Swagger Interface) Client Library using guzzle
https://github.com/seatplus/esi-client
cache esi eve eve-online laravel library psr-6 rfc-7234 rfc7234 seatplus
Last synced: 2 months ago
JSON representation
A standalone ESI (Eve Swagger Interface) Client Library using guzzle
- Host: GitHub
- URL: https://github.com/seatplus/esi-client
- Owner: seatplus
- License: mit
- Created: 2021-09-10T19:02:46.000Z (almost 5 years ago)
- Default Branch: 3.x
- Last Pushed: 2024-09-30T19:55:10.000Z (almost 2 years ago)
- Last Synced: 2026-03-22T20:57:41.794Z (3 months ago)
- Topics: cache, esi, eve, eve-online, laravel, library, psr-6, rfc-7234, rfc7234, seatplus
- Language: PHP
- Homepage:
- Size: 183 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# Esi-Client
[](https://packagist.org/packages/seatplus/esi-client)
[](https://github.com/seatplus/esi-client/actions/workflows/tests.yml)
[](https://github.com/seatplus/esi-client/actions/workflows/formats.yml)
[](https://codeclimate.com/github/seatplus/esi-client/maintainability)
[](https://codeclimate.com/github/seatplus/esi-client/test_coverage)
[](https://packagist.org/packages/seatplus/esi-client)
[](https://packagist.org/packages/seatplus/esi-client)
A standalone ESI (Eve Swagger Interface) Client Library using kevinrob/guzzle-cache-middleware.
## Installation
You can install the package via composer:
```bash
composer require seatplus/esi-client
```
## Usage
```php
$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
```bash
composer test
```
## Changelog
Please see [CHANGELOG](CHANGELOG.md) 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`](https://github.com/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](.github/CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [Felix Huber](https://github.com/seatplus)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.