PHPackages                             aratech/kontentai - 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. aratech/kontentai

ActiveLibrary[API Development](/categories/api)

aratech/kontentai
=================

A lightweight package for wrapping kontentai PHP SDK

v0.9.56(2y ago)040MITPHPPHP ^7.3|^8.0

Since Jun 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/AmmarJS/Aratech-Kontentai)[ Packagist](https://packagist.org/packages/aratech/kontentai)[ RSS](/packages/aratech-kontentai/feed)WikiDiscussions main Synced 2mo ago

READMEChangelogDependenciesVersions (20)Used By (0)

Aratech-Kontentai
=================

[](#aratech-kontentai)

Summary
-------

[](#summary)

A simple `Wrapper Class` to the already existing [Delivery Client](https://github.com/kontent-ai/delivery-sdk-php/tree/master) that is provided by the lovely people at the Kontent.ai team.

Developers
----------

[](#developers)

Developed By [Ammar Jlies](https://github.com/AmmarJS), [Jimmy Jradeh](https://github.com/ssl3nd3r).

Installation Process
--------------------

[](#installation-process)

You must have a Laravel Application before you can install this package. After installing your laravel application you can run:

```
composer require aratech/kontentai
```

or adjust your `composer.json` file:

```
{
    "require": {
        "aratech/kontentai": "^0.7.0"
    }
}
```

Create a Kontent-ai Client
--------------------------

[](#create-a-kontent-ai-client)

Creating a `Kontent.ai Client` is simple and easy, start by adding your Kontent.ai project key to your .env file, and name it `KONTENT_AI_KEY`:

```
KONTENT_AI_KEY = "Put Your Project Key Here"
```

Now, you can create a Kontent.ai Client and assign it to a variable ($app in the example below):

```
use Aratech\Kontentai;

$app = Kontentai::createClient();
```

Using our solution for querying
-------------------------------

[](#using-our-solution-for-querying)

To query an item from your Kontent.ai project just use the -&gt; operator:

```
$result = $app->about_us;
```

If you want to query multiple items, you can (almost) treat the querying process as if you are doing a query using the Laravel Query Builder Class:

```
$app->where("name", "article");
```

Returned type is a Kontentai Object (the same variable $app).

So, you can chain as many methods as you like on the $app client, and when you're done just use the fetch function to fetch the results:

```
$results = $app->language('es-ES')->where("name", "article")->fetch();
```

Returned type here is a Laravel collection conatining all the items that are returned from the query.

One `Special use case` we can do, is using the fetch method without any chained methods behind it:

```
$results = $app->fetch();
```

This will return all the items that are available in your Kontent.ai project.

You can also use the Methods that are already built in the DeliveryClient provided by Kontent-ai and chain them with our provided methods:

```
$results = $app->language('es-ES')->where("name", "article")->orderAsc('elements.product_name')->limit(10)->fetch();
```

By default, the chained methods will be cleared after you call the fetch() method, but, you can also clear them manually by calling the clearQuery() method on the app object:

```
$results = $app->clearQuery();
```

IF you want to grab an instance of the default Kontent.ai client, you can use the getClient() method:

```
$client = $app->getClient();
```

Available Methods
-----------------

[](#available-methods)

`where($key, $value)``find($id)`

What's the idea behind this class?
----------------------------------

[](#whats-the-idea-behind-this-class)

The idea is to provide a way to chain methods on top of each other as if you are using the Laravel built-in Query Builder class.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity48

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

Recently: every ~15 days

Total

19

Last Release

951d ago

### Community

---

Top Contributors

[![AmmarJS](https://avatars.githubusercontent.com/u/72838725?v=4)](https://github.com/AmmarJS "AmmarJS (34 commits)")

### Embed Badge

![Health badge](/badges/aratech-kontentai/health.svg)

```
[![Health](https://phpackages.com/badges/aratech-kontentai/health.svg)](https://phpackages.com/packages/aratech-kontentai)
```

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