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.
by Level Level · github.com/level-level/clarkson-core · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/level-level/clarkson-core/archive/refs/heads/master.zipReadme
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
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) or feel free to fork this project.
Documentation and getting started
Check out the getting started with Clarkson Core guide if you are just getting to know the project.
Overview
Installation
composer require level-level/clarkson-Core
or read the installation guide.
Template Hierachy
Uses the internal Template Hierarchy 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.
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.
More documentation
Tests
Currently
- Clone repository
git@github.com:level-level/Clarkson-Core.git clarkson-core. - Run
composer installin the newclarkson-coredirectory. - Run
composer run test.
Read the full README on GitHub →
Releases
| Tag | Published |
|---|---|
| 1.9.0 | Sep 3, 2026 |
| 0.5.2 | Sep 3, 2026 |
| 0.5.1 | Feb 4, 2025 |
| 0.5.0 | Feb 3, 2025 |
| 1.8.1 | Oct 23, 2024 |
| 1.8.0 | Oct 2, 2024 |
| 0.4.11 | Jun 26, 2024 |
| 1.7.5 | Jun 24, 2024 |
| 0.4.10 | Mar 28, 2024 |
| 0.4.9 | Jan 17, 2024 |
| 1.7.4 | Nov 20, 2023 |
| 1.7.3 | Nov 16, 2023 |
| 1.7.2 | Nov 9, 2023 |
| 1.7.1 | Nov 9, 2023 |
| 0.4.8 | Dec 30, 2022 |
| 1.7.0 | Oct 14, 2022 |
| 1.6.1 | Oct 12, 2022 |
| 1.6.0 | Sep 30, 2022 |
| 0.4.7 | Aug 24, 2022 |
| 1.5.0 | Mar 24, 2022 |
| 1.4.0 | Feb 28, 2022 |
| 1.3.0 | Jan 13, 2022 |
| 1.2.0 | Jan 6, 2022 |
| 1.1.3 | Nov 16, 2021 |
| 1.1.2 | Jun 11, 2021 |
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.