Polymorphic content management with node structure.

2.3.9 2017-01-10 07:39 UTC


Polymorphic content management with node structure.

Build Status Total Downloads Latest Stable Version License

This package is intended for Nuclear CMS and it constitutes its main content management, testing and content type management functionality. It is developed separately to enable individual development and possible reuse.


Installing Hierarchy is simple.

  1. Pull this package in through Composer.

        "require": {
            "nuclear/hierarchy": "~2.3"
  2. In order to register Hierarchy Service Provider add 'Nuclear\Hierarchy\Providers\HierarchyServiceProvider' and 'Nuclear\Hierarchy\Providers\BuilderServiceProvider' to the end of providers array in your config/app.php file.

    'providers' => array(

    Important: As of version 1.3 the services inside HierarchyServiceProvider is separated into two. The BuilderServiceProvider must be registered separately.

  3. Publish the migrations and configuration file.

        php artisan vendor:publish --provider="Nuclear\Hierarchy\Providers\HierarchyServiceProvider"

    Do not forget to migrate the database.

  4. Finally, register the autoloader in your composer.json file and use composer dump-autoload command.

    "autoload": {
        "psr-4": {
            "gen\\": "gen/"

    This is essential for using the entities that are generated by Hierarchy.

  5. Please check the tests and source code for further documentation.


Hierarchy is released under MIT License.