PHPackages                             mrgarymartin/cod-api-php - 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. mrgarymartin/cod-api-php

ActiveLibrary[API Development](/categories/api)

mrgarymartin/cod-api-php
========================

Call of Duty php API wrapper

05PHP

Since Dec 10Pushed 7y ago1 watchersCompare

[ Source](https://github.com/mrgarymartin/cod-api-php)[ Packagist](https://packagist.org/packages/mrgarymartin/cod-api-php)[ RSS](/packages/mrgarymartin-cod-api-php/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

A PHP Wrapper for the Call of Duty API
======================================

[](#a-php-wrapper-for-the-call-of-duty-api)

[![Total Downloads](https://camo.githubusercontent.com/88e1b897cd52e4e9a6b7d7ed7363f49cdd5c638f55cb144dc2cb2d3c83c6d5fb/68747470733a2f2f706f7365722e707567782e6f72672f6d72676172796d617274696e2f636f642d6170692d7068702f646f776e6c6f616473)](https://packagist.org/packages/mrgarymartin/cod-api-php)[![License](https://camo.githubusercontent.com/2b443d974d6de1606835234f2bbf8166597dfc6167a9633bfde16e347be82abd/68747470733a2f2f706f7365722e707567782e6f72672f6d72676172796d617274696e2f636f642d6170692d7068702f6c6963656e7365)](https://packagist.org/packages/mrgarymartin/cod-api-php)[![Latest Stable Version](https://camo.githubusercontent.com/1eba1c5861617fd6fc6fbeed3c7b7fbc207c489f7b06c407b19e59ec822d6679/68747470733a2f2f706f7365722e707567782e6f72672f6d72676172796d617274696e2f636f642d6170692d7068702f76657273696f6e)](https://packagist.org/packages/mrgarymartin/cod-api-php)

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

[](#installation)

`composer require mrgarymartin/cod-api-php`

### PHP

[](#php)

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

$codApi = new \mrgarymartin\CODApi($data);

// Get Profile Data
$data = $codApi->getBO4Profile($username, ['type' => 'blackout']);

// Get Blackout Matches Stats with time limits
$data =  $codApi->blackout->getRawBlackoutMatchesStats($username,"2018-12-10","2018-12-11");

// Get Raw Blackout Matches Stats
$data =  $codApi->blackout->getRawBlackoutMatchesStats($username);

// get Duo Blackout Stats
$data =  $codApi->blackout->getDuoBlackoutStats($username);

// get Quad Blackout Stats
$data =  $codApi->blackout->getQuadBlackoutStats($username);

// Get Solo Blackout Stats
$data =  $codApi->blackout->getSoloBlackoutStats($username);

```

License
-------

[](#license)

CODApi is licensed under the [MIT License](http://opensource.org/licenses/MIT).

Copyright 2018 Gary Martin

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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.

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/mrgarymartin-cod-api-php/health.svg)

```
[![Health](https://phpackages.com/badges/mrgarymartin-cod-api-php/health.svg)](https://phpackages.com/packages/mrgarymartin-cod-api-php)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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