PHPackages                             trexology/taxonomy - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. trexology/taxonomy

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

trexology/taxonomy
==================

Create and manage a heirarchical taxonomy of terms within different vocabularies

4.0.0(6y ago)436.5k↓66.7%2[1 PRs](https://github.com/Trexology/taxonomy/pulls)MITPHPPHP &gt;=7.0

Since Jun 30Pushed 5y ago2 watchersCompare

[ Source](https://github.com/Trexology/taxonomy)[ Packagist](https://packagist.org/packages/trexology/taxonomy)[ RSS](/packages/trexology-taxonomy/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (6)Dependencies (3)Versions (41)Used By (0)

[![Build Status](https://camo.githubusercontent.com/c8f0cfbf15aa16fd831a994aa2702f3c1056f443152f6851d2c3b9d4e0a51e5c/68747470733a2f2f7472617669732d63692e6f72672f446576466163746f727943482f7461786f6e6f6d792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/DevFactoryCH/taxonomy)[![Latest Stable Version](https://camo.githubusercontent.com/6cbe5d58e6ec1f9590fa6e6f678ffeb2fce0de431d6476345be599bdaa2bc5fb/68747470733a2f2f706f7365722e707567782e6f72672f747265786f6c6f67792f7461786f6e6f6d792f762f737461626c652e737667)](https://packagist.org/packages/trexology/taxonomy)[![Total Downloads](https://camo.githubusercontent.com/3439eb17007e70f4f0dc604ccb03533b30922fcb0effeaa1ad8a2c2dcfc7f407/68747470733a2f2f706f7365722e707567782e6f72672f747265786f6c6f67792f7461786f6e6f6d792f646f776e6c6f6164732e737667)](https://packagist.org/packages/trexology/taxonomy)[![License](https://camo.githubusercontent.com/710c52e6b9532c3e88f8bec6f1dfed1c611a9e4d6fb7a416916502922bcaf3ba/68747470733a2f2f706f7365722e707567782e6f72672f747265786f6c6f67792f7461786f6e6f6d792f6c6963656e73652e737667)](https://packagist.org/packages/trexology/taxonomy)

\#Taxonomy

This package allows you to create vocabularies with terms in Laravel 4 and 5

Installation
------------

[](#installation)

### Laravel 5

[](#laravel-5)

In your `composer.json` add:

```
"require": {
	"trexology/taxonomy": "3.*"
}

```

From the terminal run

```
composer update

```

Then register the service provider and Facade by opening `app/config/app.php`

(Skip this step if you are on laravel 5.5)

```
'Trexology\Taxonomy\TaxonomyServiceProvider',

'Taxonomy'        => 'Trexology\Taxonomy\Facades\TaxonomyFacade',
```

Then run the following artisant command to publish the config and migrations:

```
php artisan vendor:publish

```

Then run the migrations:

```
php artisan migrate

```

And finally in any of the Models where you want to use the Taxonomy functionality, add the following trait:

```
