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 |
Polymorphic content management with node structure.
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.
Pull this package in through Composer.
{
"require": {
"nuclear/hierarchy": "~2.3"
}
}
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.
Publish the migrations and configuration file.
php artisan vendor:publish --provider="Nuclear\Hierarchy\Providers\HierarchyServiceProvider"
Do not forget to migrate the database.
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.
Please check the tests and source code for further documentation.
Hierarchy is released under MIT License.