PHPackages                             code16/machina-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. code16/machina-client

ActiveLibrary[API Development](/categories/api)

code16/machina-client
=====================

Client package for code16/machina

v3.7(3mo ago)010.5k↑62.4%[1 PRs](https://github.com/code16/machina-client/pulls)MITPHPPHP ^8.3|^8.4|^8.5CI passing

Since Sep 13Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/code16/machina-client)[ Packagist](https://packagist.org/packages/code16/machina-client)[ RSS](/packages/code16-machina-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (24)Used By (0)

Machina Client
==============

[](#machina-client)

"code16/machina-client" is aimed to be used for implementing client to communicate with JSON APIs protected with the Code16/Machina JWT Token authentication guard. It's a simple wrapper around `GuzzleHttp` and takes cares of querying/refreshing JWT token for you.

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

[](#installation)

```
    composer require code16/machina-client

```

Usage
-----

[](#usage)

```
    $client = new \Code16\MachinaClient\MachinaClient;

    $client->setBaseUrl("https://example.com/api");
    $client->setCredentials([
        "client" => "some-client-key",
        "secret" => "some-secret-key",
    ]);

    try {
        $client->get("/foo");  // ['foo => bar'];
    }
    catch(\Code16\MachinaClient\Exceptions\InvalidCredentialsException $e)
    {
        // Incorrect credentials
    }
```

License
-------

[](#license)

(c) 2018 code16.fr

MIT

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance84

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity89

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~259 days

Total

20

Last Release

114d ago

Major Versions

v1.7 → v2.02020-06-26

v2.3 → v3.02020-11-04

PHP version history (5 changes)v3.2PHP ^8.1

v3.3PHP ^8.1|^8.2

v3.4PHP ^8.1|^8.2|^8.3

v3.5PHP ^8.1|^8.2|^8.3|^8.4

v3.7PHP ^8.3|^8.4|^8.5

### Community

Maintainers

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

---

Top Contributors

[![smknstd](https://avatars.githubusercontent.com/u/2412608?v=4)](https://github.com/smknstd "smknstd (12 commits)")[![RemiCollin](https://avatars.githubusercontent.com/u/9589616?v=4)](https://github.com/RemiCollin "RemiCollin (6 commits)")[![dvlpp](https://avatars.githubusercontent.com/u/973325?v=4)](https://github.com/dvlpp "dvlpp (5 commits)")[![PatrickePatate](https://avatars.githubusercontent.com/u/16721134?v=4)](https://github.com/PatrickePatate "PatrickePatate (5 commits)")[![PierreBillaud](https://avatars.githubusercontent.com/u/43741101?v=4)](https://github.com/PierreBillaud "PierreBillaud (4 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/code16-machina-client/health.svg)

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

###  Alternatives

[skagarwal/google-places-api

Google Places Api

1913.0M8](/packages/skagarwal-google-places-api)[dcblogdev/laravel-microsoft-graph

A Laravel Microsoft Graph API (Office365) package

168285.5k1](/packages/dcblogdev-laravel-microsoft-graph)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1344.8k1](/packages/jasara-php-amzn-selling-partner-api)[grantholle/powerschool-api

A Laravel package to make interacting with PowerSchool less painful.

1715.6k1](/packages/grantholle-powerschool-api)

PHPackages © 2026

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