PHPackages                             advancedideasmechanics/api-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. advancedideasmechanics/api-client

ActiveLibrary

advancedideasmechanics/api-client
=================================

API Service to work with DotKernel

05PHP

Since Oct 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/AdvancedIdeasMechanics/api-client)[ Packagist](https://packagist.org/packages/advancedideasmechanics/api-client)[ RSS](/packages/advancedideasmechanics-api-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

API Client
==========

[](#api-client)

An API client primarily to work with DotKernel API.

CURRENTLY UNSTABLE

Install
-------

[](#install)

Install via composer

### Composer

[](#composer)

`composer install advancedideasmechanics/apiclient`

### Call package

[](#call-package)

#### Initialize

[](#initialize)

`$apiclient = new ApiClient(baseurl, clientId, clientSecret, grantType, scope, userName, userSecret, tokenLocation, tokenFilename, debug, additionalParams);`

See if it works, if api call works it will create a tokenFilename in your chosen location. Create location path if not already in place.

#### Test

[](#test)

`$apiclient->getAccessToken();`

#### Send data to API

[](#send-data-to-api)

`$apiclient->makeApiRequest($endpoint, $body, $method = "GET", $additionalHeaders = []);`

#### Initialize Details

[](#initialize-details)

Below uses some DotKernel defaults. DO NOT use those values in production.

`baseurl  = http://localhost:8083`

`clientId = frontend` # DotKernel default

`clientSecret = frontend` # DotKernel default

`grantType = password`

`scope = api` # DotKernel default (you can keep this)

`userName = test@dotkernel.com` # DotKernel default

`userSecret = dotkernel` # DotKernel default

`tokenLocation = /var/www/data/` # keep outside web folder

`tokenFilename = token.json` # can be any file name you wish.

`debug = false` # optional will default to false, this for guzzle debugging to log files.

`additionParms = []` # Optional Guzzle parameters.

#### Send / Retrieve to API

[](#send--retrieve-to-api)

`endpoint = /someapiendpoint` # start from the root of the baseurl

`body = []` # Array of information that will be sent to api as json\_encoded() can be just \[\] if using GET

`method = GET` # defaults to GET but you can use any HTTP VERB you set if the endpoint accepts it.

`additionalHeader = []` # Optional for Guzzle

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

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/54c4511671b701eaea9e099598e2095781b145029009748f477d23564ab2197c?d=identicon)[advancedim](/maintainers/advancedim)

---

Top Contributors

[![matthewpallotta](https://avatars.githubusercontent.com/u/8971883?v=4)](https://github.com/matthewpallotta "matthewpallotta (1 commits)")

### Embed Badge

![Health badge](/badges/advancedideasmechanics-api-client/health.svg)

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

PHPackages © 2026

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