PHPackages                             chrishardie/crowdtangle-api - 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. chrishardie/crowdtangle-api

ActiveLibrary[API Development](/categories/api)

chrishardie/crowdtangle-api
===========================

A minimal PHP implementation of the CrowdTangle API

v1.0.1(4y ago)018MITPHPPHP ^8.0

Since Apr 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ChrisHardie/crowdtangle-api)[ Packagist](https://packagist.org/packages/chrishardie/crowdtangle-api)[ Docs](https://github.com/chrishardie/crowdtangle-api)[ RSS](/packages/chrishardie-crowdtangle-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

A minimal PHP implementation of the CrowdTangle API
===================================================

[](#a-minimal-php-implementation-of-the-crowdtangle-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8314418fe007aa1918fd9869cfc33776fd97f265695ebde5b3a63aacb44b3b55/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63687269736861726469652f63726f776474616e676c652d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chrishardie/crowdtangle-api)[![Total Downloads](https://camo.githubusercontent.com/fc5f0d834967160017ae26b12e6fea1384920b3b1ffa1a7a9f386bffdc7ea4db/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63687269736861726469652f63726f776474616e676c652d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chrishardie/crowdtangle-api)

This is a minimal PHP implementation of the [CrowdTangle API](https://help.crowdtangle.com/en/articles/1189612-crowdtangle-api). It contains a subset of the methods available. I am open to PRs that add extra methods to the client.

Here are a few examples on how you can use the package:

```
$client = new ChrisHardie\CrowdtangleApi\Client($accessToken);

// get lists
$client->getLists();

// get accounts in a list
$client->getAccountsForList($listId);

// get posts
$client->getPosts([
    'accounts' => '12345678',
    'startDate' => '2022-03-01',
]);

// get a single post
$client->getPost($postId);
```

View the [full CrowdTangle API Documentation](https://github.com/CrowdTangle/API/wiki) for details on available parameters and syntax.

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

[](#installation)

You can install the package via composer:

```
composer require chrishardie/crowdtangle-api
```

Usage
-----

[](#usage)

Here are the API methods currently supported:

- `getLists()` - Retrieve the lists, saved searches and saved post lists for an account
- `getAccountsForList($listId, $parameters, $maxRecords)` - Retrieve the accounts for a given list
- `getPosts($parameters, $maxRecords)` - Retrieve a set of posts for the given parameters
- `getPost($postId)` - Retrieves a specific post

In most cases the library is simply passing the required arguments to the CrowdTangle API.

In the case of methods that support pagination (currently, `getAccountsForList()` and `getPosts()`), by default this library will attempt to retrieve all records on all pages, 100 at a time up to 1000 maximum. You can change this by passing a lower value for `$maxRecords`. Note that CrowdTangle API throttling limits may apply.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Chris Hardie](https://github.com/ChrisHardie)
- [All Contributors](../../contributors)

Inspired and structured after Spatie's [Dropbox API](https://github.com/spatie/dropbox-api).

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

Total

2

Last Release

1499d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1d92b67d645c17b1cda59ab8c5e1251b7e646e3a74ceecb63244f3c3fb82a9d9?d=identicon)[ChrisHardie](/maintainers/ChrisHardie)

---

Top Contributors

[![ChrisHardie](https://avatars.githubusercontent.com/u/311772?v=4)](https://github.com/ChrisHardie "ChrisHardie (5 commits)")

---

Tags

apiChrisHardiecrowdtangle

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/chrishardie-crowdtangle-api/health.svg)

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[get-stream/stream-chat

A PHP client for Stream Chat (https://getstream.io/chat/)

301.8M2](/packages/get-stream-stream-chat)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)

PHPackages © 2026

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