PHPackages                             strategio/contentio-sdk - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. strategio/contentio-sdk

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

strategio/contentio-sdk
=======================

PHP SDK for Contentio CRM websites

v0.0.18(3y ago)2194proprietaryLattePHP ^8.1

Since Feb 24Pushed 3y ago1 watchersCompare

[ Source](https://github.com/strategio-digital/contentio-sdk)[ Packagist](https://packagist.org/packages/strategio/contentio-sdk)[ RSS](/packages/strategio-contentio-sdk/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (10)Dependencies (10)Versions (20)Used By (0)

contentio-sdk
=============

[](#contentio-sdk)

*(If you read this readme on **npmjs.com**, switch to )*

About
-----

[](#about)

- Contentio-SDK is a fully extendable PHP &amp; JS package for creating custom websites that's communicating with the [Contentio REST API](https://github.com/strategio-digital/contentio.app).
- You can use it as "server-side-rendering (php)" AND "client-side-rendering (vue.js)" engine for your e-shop or website.
- If you don't make any changes, the SDK will render a complete e-shop that will look exactly like

Installation guide
------------------

[](#installation-guide)

### 1. For classic usage

[](#1-for-classic-usage)

**You have to clone another repository rokuc-cz**

1. `git clone git@github.com:strategio-digital/rokuc-cz.git `
2. `rm -rf /.git`
3. Go to second step in "For contributors" and continue.

### 2. For contributors

[](#2-for-contributors)

1. `git clone git@github.com:strategio-digital/contentio-sdk.git`
2. `./project.sh serve`
3. `./project.sh app`
4. `composer i`
5. `composer analyse`
6. `yarn && yarn dev`

### 3. After installation

[](#3-after-installation)

- Classic project:
- For contributors:

IMPORTANT NOTES FOR OUR CONTRIBUTORS
------------------------------------

[](#important-notes-for-our-contributors)

### ⚠️💥 Don't forget to `yarn publish` when you make changes in these 2 files:

[](#️-dont-forget-to-yarn-publish-when-you-make-changes-in-these-2-files)

```
    1. package.json
    2. yarn.lock

```

Examples for classic usage
--------------------------

[](#examples-for-classic-usage)

### 1. Adding custom config file

[](#1-adding-custom-config-file)

In `www/index.php`

```
$container = (new Bootstrap())
    ->projectRootPath(__DIR__ . '/../')
    ->configure([
        __DIR__ . '/../vendor/strategio/contentio-sdk/config/app.neon',
        //__DIR__ . '/../config/app.neon' // getByType(App::class)->run($container);
```

### 2. Overriding routes:

[](#2-overriding-routes)

In `app/config/app.neon`

```
services:
    #routerFactory: Strategio\Router\RouterFactory #
        /*$this->add('article_detail', '/clanky/{slug}', [
            \Strategio\Controller\ArticleController::class,
            'index'
        ]);*/

        return $routes;
    }
}
```

### 3. Overriding template of any action

[](#3-overriding-template-of-any-action)

In `app/Controller/ArticleController.php`

```
class ArticleController extends \ContentioSdk\Controller\ArticleController
{
    #[Template(path: __DIR__ . '/../../view/controller/article.latte')]
    public function index(string $slug): void
    {
        parent::index($slug);
    }
}
```

### 4. Making async request to API

[](#4-making-async-request-to-api)

```
public function index(string $slug): void
{
    $this->addRequest('first', 'GET', "article/show-one", [
        'json' => [
            'slug' => $slug,
        ]
    ]);

    $this->addRequest('second', 'GET', "article/show-one", [
        'json' => [
            'slug' => $slug,
        ]
    ]);

    $responses = $this->dispatchRequests('Article Detail');

    // first article as array -->
    $a1 = json_decode($responses['first']->getBody()->getContents(), true);

    // second article as array -->
    $a2 = json_decode($responses['second']->getBody()->getContents(), true);

    $this->template->articles = [$a1, $a2];
}
```

### 5. Creating image thumbnail

[](#5-creating-image-thumbnail)

```
{varType ContentioSdk\Component\Thumbnail\ThumbGen $thumbGen}
{var $thumb = $thumbGen->create('/article/56/test.png', 500, null, 'SHRINK_ONLY', 80)}

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Recently: every ~43 days

Total

18

Last Release

1214d ago

### Community

Maintainers

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

---

Top Contributors

[![jzaplet](https://avatars.githubusercontent.com/u/4992367?v=4)](https://github.com/jzaplet "jzaplet (62 commits)")

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/strategio-contentio-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/strategio-contentio-sdk/health.svg)](https://phpackages.com/packages/strategio-contentio-sdk)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M385](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[leapt/core-bundle

Symfony LeaptCoreBundle

2529.1k4](/packages/leapt-core-bundle)

PHPackages © 2026

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