library opencrest
CREST Library for Eve Online
mentos1386/opencrest
CREST Library for Eve Online
- Tuesday, July 19, 2016
- by mentos1386
- Repository
- 2 Watchers
- 3 Stars
- 35 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 2 Forks
- 2 Open issues
- 10 Versions
- 0 % Grown
OpenCrest
, (*1)
EVE Online CREST PHP Library, (*2)
Open Source PHP Library for using EVE Online CREST API, (*3)
Shouldn't be used for production just yet, as CREST API lacks data. It's better to use XML API for now., (*4)
How to use
use OpenCrest\OpenCrest;
$token = "Access Token you got from OAuth authentication | Required only for Authenticated resources";
OpenCrest::setToken($token);
// Get list of constellations
$constellations = OpenCrest::Constellations->get();
// You can then foreach list to get more details on constellations
foreach ($constellations as $constellation) {
// This will make show($id) request for every object.
//Beware, that OpenCrest::[something]->get() can be very long and that making get request on every item
// will make alot of reqquests.
var_dump($constellation->get);
}
// Get specific constellation
$id = 20000002;
$constellation = OpenCrest::Constellations->get($id);
// Same with planets
$id = 40000017;
$planet = OpenCrest::Planets->get($id);
// Or alliances
$id = 99000006;
$alliance = OpenCrest::Alliances->get($id)->description;
// Get list of alliances
$alliances = OpenCrest::Alliances->get();
// Go to specific page
$alliances = OpenCrest::Alliances->page(2);
// Go to next page
// Using allrady recived object to know which page is next.
$alliances = $alliances->nextPage();
// Go to previouse page
// Using allrady recived object to know which page is previous.
$alliances = $alliances->previousPage();
Endpoints Documentation
Documentation, (*5)
License
The MIT License (MIT). Please see License File for more information., (*6)
dev-master
9999999-dev
CREST Library for Eve Online
Sources
Download
MIT
The Requires
The Development Requires
by
Tine Jozelj
api
crest
eve
eveonline
3.0.1
3.0.1.0
CREST Library for Eve Online
Sources
Download
MIT
The Requires
The Development Requires
by
Tine Jozelj
api
crest
eve
eveonline
3.0.0
3.0.0.0
CREST Library for Eve Online
Sources
Download
MIT
The Requires
by
Tine Jozelj
api
crest
eve
eveonline
3.0.0-beta
3.0.0.0-beta
CREST Library for Eve Online
Sources
Download
MIT
The Requires
by
Tine Jozelj
api
crest
eve
eveonline
2.0.1
2.0.1.0
CREST Library for Eve Online
Sources
Download
MIT
The Requires
by
Tine Jozelj
api
crest
eve
eveonline
2.0.0
2.0.0.0
CREST Library for Eve Online
Sources
Download
MIT
The Requires
by
Tine Jozelj
api
crest
eve
eveonline
1.0.3
1.0.3.0
CREST Library for Eve Online
Sources
Download
MIT
The Requires
by
Tine Jozelj
api
crest
eve
eveonline
1.0.2
1.0.2.0
CREST Library for Eve Online
Sources
Download
MIT
The Requires
by
Tine Jozelj
api
crest
eve
eveonline
1.0.1
1.0.1.0
CREST Library for Eve Online
Sources
Download
MIT
The Requires
by
Tine Jozelj
api
crest
eve
eveonline
1.0.0
1.0.0.0
CREST Library for Eve Online
Sources
Download
MIT
The Requires
by
Tine Jozelj
api
crest
eve
eveonline