NuclearCMS / Hierarchy by Hyleeh

Polymorphic content management with node structure.
675
1
2
Package Data
Maintainer Username: Hyleeh
Maintainer Contact: egemen@umomega.com (Egemen Kızılcan)
Package Create Date: 2015-10-30
Package Last Update: 2023-04-04
Language: PHP
License: MIT
Last Refreshed: 2024-11-15 15:19:08
Package Statistics
Total Downloads: 675
Monthly Downloads: 2
Daily Downloads: 0
Total Stars: 1
Total Watchers: 2
Total Forks: 1
Total Open Issues: 0

Hierarchy

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.