Registry / utility / brain-hierarchy

brain-hierarchy

JSON →
library3.2.0phppackagistunverified

A no-dependencies package that embodies the WordPress template hierarchy.

composer require brain/hierarchy
INSTALL
IMPORT
SIG · BRAIN-HIERARCHY
B
brain-hierarchy
utilityphpv3.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Hierarchy
use Brain\Hierarchy\Hierarchy;

Instantiate Hierarchy and retrieve template suggestions for a given post type and slug.

use Brain\Hierarchy\Hierarchy; $hierarchy = new Hierarchy(); $templates = $hierarchy->getTemplates('page', 'about');
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.2.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
4
Meta
1
Amazon
1
Resources
brain-hierarchy — pip install brain-hierarchy · libregistry