Clarkson Core WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA
A plugin to write Object-Oriented code in combination with the Twig templating engine while keeping the WordPress Way of working in mind.
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/level-level/clarkson-core/archive/refs/heads/master.zipA 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.
Releases
Newest 25 of 59 recorded releases.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.