nuclear/hierarchy

Polymorphic content management with node structure.


README

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.

Installation

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(
    
        'Illuminate\Foundation\Providers\ArtisanServiceProvider',
        'Illuminate\Auth\AuthServiceProvider',
        ...
        'Nuclear\Hierarchy\Providers\HierarchyServiceProvider',
        'Nuclear\Hierarchy\Providers\BuilderServiceProvider',
    
    ),

    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.

License

Hierarchy is released under MIT License.