PHPackages                             level-level/clarkson-core - 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. [Templating &amp; Views](/categories/templating)
4. /
5. level-level/clarkson-core

ActiveLibrary[Templating &amp; Views](/categories/templating)

level-level/clarkson-core
=========================

A plugin to write Object-Oriented code in combination with the Twig templating engine while keeping the WordPress Way of working in mind.

1.8.1(1y ago)24135.8k↓100%12[22 issues](https://github.com/level-level/Clarkson-Core/issues)[1 PRs](https://github.com/level-level/Clarkson-Core/pulls)1GPL-2.0-or-laterPHPPHP &gt;=7.4CI passing

Since Jul 19Pushed 3mo ago11 watchersCompare

[ Source](https://github.com/level-level/Clarkson-Core)[ Packagist](https://packagist.org/packages/level-level/clarkson-core)[ RSS](/packages/level-level-clarkson-core/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (11)Versions (85)Used By (1)

[![Test](https://github.com/level-level/Clarkson-Core/actions/workflows/test.yml/badge.svg)](https://github.com/level-level/Clarkson-Core/actions/workflows/test.yml)

Clarkson Core
=============

[](#clarkson-core)

A plugin to write Object-Oriented code in combination with the Twig templating engine while keeping the WordPress Way of working in mind.

⚠️ Maintenance Mode Only
------------------------

[](#️-maintenance-mode-only)

This project is no longer receiving new features. It will only receive maintenance releases for PHP and WordPress compatibility updates as needed. If you're looking for active development, please consider alternatives (such as [Timber](https://github.com/timber/timber)) or feel free to fork this project.

Documentation and getting started
---------------------------------

[](#documentation-and-getting-started)

Check out the [getting started with Clarkson Core guide](https://level-level.github.io/Clarkson-Core/phpdoc/guide/index.html) if you are just getting to know the project.

Overview
--------

[](#overview)

### Installation

[](#installation)

```
composer require level-level/clarkson-Core

```

or read the [installation guide](https://level-level.github.io/Clarkson-Core/phpdoc/guide/getting-started/installation.html).

### Template Hierachy

[](#template-hierachy)

Uses the internal [Template Hierarchy](https://level-level.github.io/Clarkson-Core/phpdoc/guide/getting-started/templating.html) so you can replace `index.php` with `index.twig` or `archive-company.php` with `archive-company.twig` and still have all Posts or CPT's available in "The Loop".

```
{% extends "layouts/full-width.twig" %}

{% block content %}
    {% for object in objects %}
        {% include 'partials/teaser.twig' %}
    {% endfor %}
{% endblock %}
```

### Autoloading of WordPress-object classes per Custom Post Type.

[](#autoloading-of-wordpress-object-classes-per-custom-post-type)

It autoloads default objects that behave just like `WP_Post` and other native WordPress object but with some more handy stuff. When you register a Custom Post Type `ll_company` your custom class `ll_company` gets loaded in the Twig context as `objects` variable within the `archive-company.twig`.

Read up on [Clarkson objects and how they are initiated](https://level-level.github.io/Clarkson-Core/phpdoc/guide/getting-started/clarkson-objects.html).

More documentation
------------------

[](#more-documentation)

- [Actions &amp; filters](https://level-level.github.io/Clarkson-Core/hooks/)
- [Reference](https://level-level.github.io/Clarkson-Core/phpdoc/namespaces/clarkson-core.html)
- [Legacy documentation](https://github.com/level-level/Clarkson-Core/wiki)

Tests
-----

[](#tests)

Currently

1. Clone repository `git@github.com:level-level/Clarkson-Core.git clarkson-core`.
2. Run `composer install` in the new `clarkson-core` directory.
3. Run `composer run test`.

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance46

Moderate activity, may be stable

Popularity38

Limited adoption so far

Community30

Small or concentrated contributor base

Maturity79

Established project with proven stability

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

Total

55

Last Release

458d ago

Major Versions

0.4.6 → 1.1.12021-03-11

0.4.7 → 1.6.02022-09-30

0.4.8 → 1.7.12023-08-07

0.4.10 → 1.7.52024-06-24

0.4.11 → 1.8.02024-10-02

PHP version history (5 changes)0.4.0PHP ^7.1

1.0.0-rc1PHP ^7.2

1.5.0PHP &gt;=7.4

0.4.8PHP ^7.1|^8.0

0.5.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/02fe3b568484997768925e14cabb4ee06b92592e86f8c0b8a56bf8912dde89f1?d=identicon)[NielsdeBlaauw](/maintainers/NielsdeBlaauw)

![](https://www.gravatar.com/avatar/f965815b3bbdb7489ec30999837398c0f1d45b6881f2359cf0fb6e77dffaf3b5?d=identicon)[level-level](/maintainers/level-level)

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

---

Top Contributors

[![NielsdeBlaauw](https://avatars.githubusercontent.com/u/661876?v=4)](https://github.com/NielsdeBlaauw "NielsdeBlaauw (246 commits)")[![jmslbam](https://avatars.githubusercontent.com/u/145887?v=4)](https://github.com/jmslbam "jmslbam (191 commits)")[![menno-ll](https://avatars.githubusercontent.com/u/50165380?v=4)](https://github.com/menno-ll "menno-ll (50 commits)")[![Mike-Hermans](https://avatars.githubusercontent.com/u/6940163?v=4)](https://github.com/Mike-Hermans "Mike-Hermans (16 commits)")[![raldenhoven](https://avatars.githubusercontent.com/u/655621?v=4)](https://github.com/raldenhoven "raldenhoven (14 commits)")[![Willemijnr](https://avatars.githubusercontent.com/u/2552186?v=4)](https://github.com/Willemijnr "Willemijnr (13 commits)")[![JosAchterberg](https://avatars.githubusercontent.com/u/6848586?v=4)](https://github.com/JosAchterberg "JosAchterberg (10 commits)")[![christiaanstijnen](https://avatars.githubusercontent.com/u/14320178?v=4)](https://github.com/christiaanstijnen "christiaanstijnen (8 commits)")[![ken-ll](https://avatars.githubusercontent.com/u/67947342?v=4)](https://github.com/ken-ll "ken-ll (5 commits)")[![kevinpoot](https://avatars.githubusercontent.com/u/36954637?v=4)](https://github.com/kevinpoot "kevinpoot (4 commits)")[![Floris-ll](https://avatars.githubusercontent.com/u/112550278?v=4)](https://github.com/Floris-ll "Floris-ll (4 commits)")[![ThePoit](https://avatars.githubusercontent.com/u/6871941?v=4)](https://github.com/ThePoit "ThePoit (4 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![jasperrooduijn](https://avatars.githubusercontent.com/u/1854745?v=4)](https://github.com/jasperrooduijn "jasperrooduijn (1 commits)")[![fschroiff](https://avatars.githubusercontent.com/u/660010?v=4)](https://github.com/fschroiff "fschroiff (1 commits)")[![ZwaarContrast](https://avatars.githubusercontent.com/u/1869392?v=4)](https://github.com/ZwaarContrast "ZwaarContrast (1 commits)")[![coenjacobs](https://avatars.githubusercontent.com/u/245703?v=4)](https://github.com/coenjacobs "coenjacobs (1 commits)")[![martijn-brands](https://avatars.githubusercontent.com/u/17003112?v=4)](https://github.com/martijn-brands "martijn-brands (1 commits)")

---

Tags

clarksonlevel-levelplugintemplatetheming-layertwigwordpresswordpress-objects

###  Code Quality

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/level-level-clarkson-core/health.svg)

```
[![Health](https://phpackages.com/badges/level-level-clarkson-core/health.svg)](https://phpackages.com/packages/level-level-clarkson-core)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[twig/cssinliner-extra

A Twig extension to allow inlining CSS

23018.5M53](/packages/twig-cssinliner-extra)[shopware/storefront

Storefront for Shopware

684.2M147](/packages/shopware-storefront)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M385](/packages/shopware-core)[easycorp/easyadmin-demo

EasyAdmin Demo Application

145.7k](/packages/easycorp-easyadmin-demo)

PHPackages © 2026

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