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)041MITPHPPHP ^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 today

READMEChangelogDependencies (2)Versions (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 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

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

997d ago

### Community

Maintainers

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

---

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

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M986](/packages/statamic-cms)[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

3.0k37.6M134](/packages/darkaonline-l5-swagger)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k14.2M63](/packages/knuckleswtf-scribe)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

783.8k](/packages/scriptdevelop-whatsapp-manager)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3416.7k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

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