PHPackages                             ogetit/ogetit - 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. [API Development](/categories/api)
4. /
5. ogetit/ogetit

ActiveLibrary[API Development](/categories/api)

ogetit/ogetit
=============

OGetIt is a open source PHP library for handling the new OGame API as of version 6.

v2.0.0(10y ago)262288[2 PRs](https://github.com/Warsaalk/OGetIt/pulls)LGPL-2.1PHP

Since Jul 18Pushed 5y ago8 watchersCompare

[ Source](https://github.com/Warsaalk/OGetIt)[ Packagist](https://packagist.org/packages/ogetit/ogetit)[ Docs](https://github.com/Warsaalk/OGetIt)[ RSS](/packages/ogetit-ogetit/feed)WikiDiscussions master Synced today

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

\#OGetIt

OGetIt is a open source library for handling the new OGame API as of version 6.

It handles everything from connecting with the API, parsing the API to advanced calculations to get detailed results.

\##Supported features ###Reports

- Combat
- Harvest
- Espionage
- Missile

\##How to use?

```
include('autoload.php'); //Or via Composer
$ogetit = new OGetIt($uni, $lang, $apikey);

//Get Combat report
$cr = $ogetit->getCombatReport($crkey);

//Get Harvest report
$rr = $ogetit->getHarvestReport($rrkey);

//Get Spy report
$sr = $ogetit->getSpyReport($srkey);

//Get Missile report
$mr = $ogetit->getMissileReport($mrkey);

```

\###Examples ####Get attacker losses from combat report

```
$cr = $ogetit->getCombatReport($crkey);
$result = $cr->getCalculator()->getFinalResult();
$result->getAttackers()->getLosses();

```

\####Get harvested metal from harvest report

```
$rr = $ogetit->getHarvestReport($rrkey);
$rr->getMetal();

```

\####Get Astrophysics level from espionage report

```
$sr = $ogetit->getSpyReport($srkey);
$sr->getDefender()->getResearch()[Astrophysics::TYPE];

```

\####Get defender losses from missile report

```
$mr = $ogetit->getMissileReport($mrkey);
$mr->getDefender()->getLosses();

```

\##Requirements

- PHP v5.4+ (64-bit)
- PHP cURL (libcurl v7.10.5+)

\##Exceptions

\###cURL codes

\###OGame API codes

```
OK = 1000;
INVALID_VERSION = 4000;
INVALID_API_KEY = 4001;
INVALID_API_KEY_EXPIRED = 4002;
INVALID_API_PERMISSION = 4003;
INVALID_PATH = 4004;
INTERNAL_ERROR = 5000;
INVALID_CR_ID = 6000;

```

\##Contributing

If you want to contribute code please fork this repository and create a pull request to merge your changes. Your changes will be reviewed and merged afterwards if approved by the repository maintainers.

\##License

GNU Lesser General Public License, version 2.1

- License: [GNU LGPL](COPYING)

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 50.2% 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 ~0 days

Total

15

Last Release

4003d ago

Major Versions

v1.0.9 → v2.0.02015-07-18

### Community

Maintainers

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

---

Top Contributors

[![Warsaalk](https://avatars.githubusercontent.com/u/2462755?v=4)](https://github.com/Warsaalk "Warsaalk (131 commits)")[![klaasvp](https://avatars.githubusercontent.com/u/2462755?v=4)](https://github.com/klaasvp "klaasvp (130 commits)")

---

Tags

OGameUniverseView

### Embed Badge

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

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

###  Alternatives

[pocketmine/pocketmine-mp

A server software for Minecraft: Bedrock Edition written in PHP

3.5k78.3k91](/packages/pocketmine-pocketmine-mp)[corsinvest/cv4pve-api-php

Corsinvest Proxmox VE Client API PHP

811.4M](/packages/corsinvest-cv4pve-api-php)[tinify/tinify

PHP client for the Tinify API. Tinify compresses your images intelligently. Read more at https://tinify.com.

2625.5M78](/packages/tinify-tinify)[phptg/bot-api

PHP library for working with Telegram API

12716.4k7](/packages/phptg-bot-api)[biplane/yandex-direct

PHP library for Yandex.Direct API

55187.0k2](/packages/biplane-yandex-direct)[snowcap/emarsys

Emarsys RestFull API client

391.2M](/packages/snowcap-emarsys)

PHPackages © 2026

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