PHPackages                             trenchdevs/trenchdevs-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. trenchdevs/trenchdevs-php-client

ActiveLibrary[API Development](/categories/api)

trenchdevs/trenchdevs-php-client
================================

Client for TrenchDevs API

15PHP

Since Sep 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/christopheredrian/trenchdevs-php-client)[ Packagist](https://packagist.org/packages/trenchdevs/trenchdevs-php-client)[ RSS](/packages/trenchdevs-trenchdevs-php-client/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

trenchdevs-php-client
=====================

[](#trenchdevs-php-client)

A simple PHP client for the [trenchdevs.org](https://trenchdevs.org) API

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

[](#installation)

Package can be installed via composer

```
composer require trenchdevs/trenchdevs-php-client

```

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

[](#basic-usage)

```
use TrenchDevs\TrenchDevsClient\TrenchDevsClient;

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

// Initiate client
$trenchDevsClient = new TrenchDevsClient('http://trenchdevs.test');

// By default - all responses are in object format (stdClass), set to true if you preferred using array
// $trenchDevsClient->setAssociateArrayResponse(true);

// Send a test route
var_dump($trenchDevsClient->test());

// Authenticate
var_dump($trenchDevsClient->login('...', '...'));
var_dump($trenchDevsClient->me());

// Products api
var_dump($trenchDevsClient->products());
var_dump($trenchDevsClient->productOne(6));

// Logout client
var_dump($trenchDevsClient->logout());
```

Docs
----

[](#docs)

todo

Contributors
------------

[](#contributors)

License
-------

[](#license)

The MIT License (MIT)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5979debbe08e2ba3ed95d64803c2caf297eaa08b39ea1f2e92629061321f4f89?d=identicon)[trenchdevs](/maintainers/trenchdevs)

---

Top Contributors

[![christopheredrian](https://avatars.githubusercontent.com/u/9636858?v=4)](https://github.com/christopheredrian "christopheredrian (10 commits)")

---

Tags

apiapi-clientphptrenchdevs

### Embed Badge

![Health badge](/badges/trenchdevs-trenchdevs-php-client/health.svg)

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

###  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)
