PHPackages                             atgames/ads-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. atgames/ads-php

ActiveLibrary[API Development](/categories/api)

atgames/ads-php
===============

Atgames Digital Service PHP Library

1.0.5(10y ago)3171MITPHPPHP &gt;=5.3.3

Since Feb 24Pushed 10y ago2 watchersCompare

[ Source](https://github.com/iscreen/ads-php)[ Packagist](https://packagist.org/packages/atgames/ads-php)[ Docs](https://atgames.net/)[ RSS](/packages/atgames-ads-php/feed)WikiDiscussions master Synced 4w ago

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

ADS PHP bindings
================

[](#ads-php-bindings)

Requirements
------------

[](#requirements)

PHP 5.3.3 and later.

Composer
--------

[](#composer)

You can install the bindings via [Composer](http://getcomposer.org/). Run the following command:

```
composer require atgames/ads-php
```

To use the bindings, use Composer's [autoload](https://getcomposer.org/doc/00-intro.md#autoloading):

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

Manual Installation
-------------------

[](#manual-installation)

If you do not wish to use Composer, you can download the \[latest release\]( releases). Then, to use the bindings, include the `init.php` file.

```
require_once('/path/to/ads-php/init.php');
```

Getting Started
---------------

[](#getting-started)

Simple usage looks like:

```
\Ads\Ads::setApiKey('OTEwMDA6a1I2UkFTelJhUS1lcWNZSkw1blE=');
$data = \Ads\Product::all();
echo $data;
```

Documentation
-------------

[](#documentation)

Please see  for up-to-date documentation.

Custom Request Timeouts
-----------------------

[](#custom-request-timeouts)

To modify request timeouts (connect or total, in seconds) you'll need to tell the API client to use a CurlClient other than its default. You'll set the timeouts in that CurlClient.

```
// set up your tweaked Curl client
$curl = new \Ads\HttpClient\CurlClient();
$curl->setTimeout(10); // default is \Ads\HttpClient\CurlClient::DEFAULT_TIMEOUT
$curl->setConnectTimeout(5); // default is \Ads\HttpClient\CurlClient::DEFAULT_CONNECT_TIMEOUT

echo $curl->getTimeout(); // 10
echo $curl->getConnectTimeout(); // 5

// tell Ads to use the tweaked client
\Ads\ApiRequestor::setHttpClient($curl);

// use the Ads API client as you normally would
```

Development
-----------

[](#development)

Install dependencies:

```
composer install
```

Tests
-----

[](#tests)

Install dependencies as mentioned above (which will resolve [PHPUnit](http://packagist.org/packages/phpunit/phpunit)), then you can run the test suite:

```
./vendor/bin/phpunit
```

Or to run an individual test file:

```
./vendor/bin/phpunit tests/UtilTest.php
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~41 days

Total

3

Last Release

3697d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1193025?v=4)[Dean Lin](/maintainers/iscreen)[@iscreen](https://github.com/iscreen)

---

Top Contributors

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

---

Tags

apiatgamesads-phpdigital service

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/atgames-ads-php/health.svg)

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

###  Alternatives

[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22779.5k](/packages/m165437-laravel-blueprint-docs)

PHPackages © 2026

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