PHPackages                             devfactory/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. devfactory/taxonomy

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

devfactory/taxonomy
===================

Create and manage a heirarchical taxonomy of terms within different vocabularies

3.1.3(8y ago)3144.4k21[2 issues](https://github.com/DevFactoryCH/taxonomy/issues)[3 PRs](https://github.com/DevFactoryCH/taxonomy/pulls)MITPHPPHP &gt;=5.4

Since Jun 30Pushed 1y ago8 watchersCompare

[ Source](https://github.com/DevFactoryCH/taxonomy)[ Packagist](https://packagist.org/packages/devfactory/taxonomy)[ RSS](/packages/devfactory-taxonomy/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (3)Versions (42)Used By (0)

[![Build Status](https://camo.githubusercontent.com/c8f0cfbf15aa16fd831a994aa2702f3c1056f443152f6851d2c3b9d4e0a51e5c/68747470733a2f2f7472617669732d63692e6f72672f446576466163746f727943482f7461786f6e6f6d792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/DevFactoryCH/taxonomy)[![Latest Stable Version](https://camo.githubusercontent.com/14b2f973eb15d97710772ff53f8f4e6c1580c4b8fd3cc883215c8806c57618e7/68747470733a2f2f706f7365722e707567782e6f72672f646576666163746f72792f7461786f6e6f6d792f762f737461626c652e737667)](https://packagist.org/packages/devfactory/taxonomy)[![Total Downloads](https://camo.githubusercontent.com/7f444962d9e7fd783991ccc2c9109c329abdaef12dd26228fc63538e0e078879/68747470733a2f2f706f7365722e707567782e6f72672f646576666163746f72792f7461786f6e6f6d792f646f776e6c6f6164732e737667)](https://packagist.org/packages/devfactory/taxonomy)[![License](https://camo.githubusercontent.com/8efa3e9efab8f2a53c828000c8999fd1c344b64e6b9e97dc72853dd2b4fcec68/68747470733a2f2f706f7365722e707567782e6f72672f646576666163746f72792f7461786f6e6f6d792f6c6963656e73652e737667)](https://packagist.org/packages/devfactory/taxonomy)

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:

#### 5.0 - 5.1

[](#50---51)

```
"require": {
	"devfactory/taxonomy": "3.0.*"
}

```

#### 5.2+

[](#52)

```
"require": {
	"devfactory/taxonomy": "3.1.*"
}

```

From the terminal run

```
composer update

```

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

```
'Devfactory\Taxonomy\TaxonomyServiceProvider',

'Taxonomy'        => 'Devfactory\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:

```
