PHPackages                             trukes/threads-api-php-client - 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. trukes/threads-api-php-client

ActiveLibrary[API Development](/categories/api)

trukes/threads-api-php-client
=============================

A PHP client library for accessing Threads from Meta

0.0.2(1y ago)9318[2 issues](https://github.com/Trukes/threads-api-php-client/issues)PHPPHP &gt;=8.1

Since Aug 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Trukes/threads-api-php-client)[ Packagist](https://packagist.org/packages/trukes/threads-api-php-client)[ RSS](/packages/trukes-threads-api-php-client/feed)WikiDiscussions master Synced 1mo ago

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

Threads Meta API PHP Integration \[WIP\]
========================================

[](#threads-meta-api-php-integration-wip)

[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://opensource.org/licenses/MIT)[![PHP Version](https://camo.githubusercontent.com/183804d09fec16ca7b6209b007250b7d8db1b915042feb093a9f20e6e1f25359/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e312d3838393242462e737667)](https://php.net/)

A PHP library for seamless integration with the Threads API by Meta. This package provides a simple and intuitive interface for interacting with the API, making it easy to integrate with PHP applications.

Features
--------

[](#features)

- **Publishing**: Upload and publish Threads media objects and check their status.
- **Media Retrieval**: Retrieve Threads media objects.
- **Reply Management**: Retrieve replies and conversations and hide/unhide replies.
- **User**: Retrieve a Threads user's posts, publishing limit, and profile.
- **Insights**: Retrieve insights for Threads media objects and users.

### Coming soon

[](#coming-soon)

- **Authentication**: [Issue](https://github.com/Trukes/threads-api-php-client/issues/9) - Support for OAuth2 authentication.

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

[](#requirements)

- PHP 8.1 or higher

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

[](#installation)

Installation is done via [Composer](https://getcomposer.org/). Simply run the following command:

```
composer require trukes/threads-api-php-client
```

Basic Usage
-----------

[](#basic-usage)

### Client

[](#client)

Before using the API, you need to create a client:

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

use Trukes\ThreadsApiPhpClient\Threads;

$client = Threads::client('');
```

### Create a Post

[](#create-a-post)

```
$create = $client->publish()->create(
    'threads_user_id',
    'media_type',
    'text',
    'image_url',
    'video_url',
    'is_carousel_item',
    'children',
    'reply_to_id',
    'reply_control',
    'allowlisted_country_codes',
    'all_text',
)->data();

echo 'Post created successfully. Media container ID: ' . $response['id'];
```

### Publish a Post

[](#publish-a-post)

```
$create = $client->publish()->publish(
    'threads_user_id',
    '129984213'
)->data();

echo 'Post created successfully. Media container ID: ' . $response['id'];
```

Threads Documentation
---------------------

[](#threads-documentation)

Complete META Threads documentation can be found [here](https://developers.facebook.com/docs/threads/reference).

Package Documentation
---------------------

[](#package-documentation)

Complete documentation can be found [here](https://github.com/Trukes/threads-api-php-client/wiki).

Contributing
------------

[](#contributing)

Contributions are welcome! If you have suggestions, fixes, or improvements, feel free to open an issue or a pull request.

### How to Contribute

[](#how-to-contribute)

1. Fork the repository.
2. Create a new branch for your feature (`git checkout -b feature/new-feature`).
3. Commit your changes (`git commit -am 'Add new feature'`).
4. Push to the branch (`git push origin feature/new-feature`).
5. Open a Pull Request.

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

Contact
-------

[](#contact)

If you have any questions or suggestions, feel free to contact us at .

⭐️ Show Your Support
--------------------

[](#️-show-your-support)

If this project helped you or you find it useful, please give it a star ⭐️ on [GitHub](https://github.com/your-username/threads-meta-api). It helps others discover the project and motivates us to continue developing and improving it.

---

Made with ❤️ by Trukes ().

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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

Total

2

Last Release

626d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4dc33a2d40d69727b4af27491f6d1d0894bb98d618de1545e3ed5d7520ef8b18?d=identicon)[Trukes](/maintainers/Trukes)

---

Top Contributors

[![Trukes](https://avatars.githubusercontent.com/u/6023213?v=4)](https://github.com/Trukes "Trukes (53 commits)")

---

Tags

apiapi-clientclientcomposer-packageinstagrammetaphpthreads

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/trukes-threads-api-php-client/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[jolicode/slack-php-api

An up to date PHP client for Slack's API

2534.4M12](/packages/jolicode-slack-php-api)[intercom/intercom-php

Intercom API client.

30320.5M26](/packages/intercom-intercom-php)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[transip/transip-api-php

TransIP Rest API Library

32273.6k5](/packages/transip-transip-api-php)

PHPackages © 2026

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