PHPackages                             fbf/laravel-categories - 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. fbf/laravel-categories

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

fbf/laravel-categories
======================

A Laravel 4 package for adding one or more types of category hierarchies to a website

v0.2.0(12y ago)165767[2 issues](https://github.com/FbF/Laravel-Categories/issues)PHPPHP &gt;=5.3.0

Since Feb 26Pushed 11y ago2 watchersCompare

[ Source](https://github.com/FbF/Laravel-Categories)[ Packagist](https://packagist.org/packages/fbf/laravel-categories)[ RSS](/packages/fbf-laravel-categories/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Laravel Categories
==================

[](#laravel-categories)

A Laravel 4 package for adding one or more types of category hierarchies to a website

e.g. a hierarchy for blog categories and another for product categories

Comes with
----------

[](#comes-with)

- Migration for the `categories` table
- Category Model (that extends Baum/Node so you can use all the handy methods from this excellent nested set implementation)
- Seed for building the root nodes, one for each type of hierarchy, specified in your config file
- Sample FrozenNode/Administrator config file for managing the categories

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

[](#installation)

Add the following to you composer.json file (Recommend swapping "dev-master" for the latest release)

```
"fbf/laravel-categories": "dev-master"

```

Run

```
composer update

```

Add the following to app/config/app.php

```
'Fbf\LaravelCategories\LaravelCategoriesServiceProvider'

```

Publish the config

```
php artisan config:publish fbf/laravel-categories

```

Run the migration

```
php artisan migrate --package="fbf/laravel-categories"

```

Ensure the categories `types` are set correctly in the config file.

Run the seed (this will create root nodes for each of your category `types`)

```
php artisan db:seed --class="Fbf\LaravelCategories\CategoriesTableBaseSeeder"

```

Build your menus in the database, or if you are using FrozenNode's Laravel Administrator, see the info below

Administrator
-------------

[](#administrator)

You can use the excellent Laravel Administrator package by FrozenNode to administer your categories.

A ready-to-use model config file for the `Category` model (`categories.php`), including custom actions to reorder nodes in the hierarchy, is provided in the `src/config/administrator` directory of the package, which you can copy into the `app/config/administrator` directory (or whatever you set as the `model_config_path` in the administrator config file).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

4458d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c1890fa7f83fd77b7c73d984199cb9a45ba9871acb4133490f43115c19fe845f?d=identicon)[neilcrookes](/maintainers/neilcrookes)

---

Top Contributors

[![neilcrookes](https://avatars.githubusercontent.com/u/24232?v=4)](https://github.com/neilcrookes "neilcrookes (2 commits)")[![mercuryseries](https://avatars.githubusercontent.com/u/5163810?v=4)](https://github.com/mercuryseries "mercuryseries (1 commits)")

---

Tags

laravelcategorieshierarchy

### Embed Badge

![Health badge](/badges/fbf-laravel-categories/health.svg)

```
[![Health](https://phpackages.com/badges/fbf-laravel-categories/health.svg)](https://phpackages.com/packages/fbf-laravel-categories)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[aliziodev/laravel-taxonomy

Laravel Taxonomy is a flexible and powerful package for managing taxonomies, categories, tags, and hierarchical structures in Laravel applications. Features nested-set support for optimal query performance on hierarchical data structures.

23318.4k](/packages/aliziodev-laravel-taxonomy)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[rinvex/laravel-menus

Rinvex Menus is a simple menu builder package for Laravel, that supports hierarchical structure, ordering, and styling with full flexibility using presenters for easy styling and custom structure of menu rendering.

294.0k20](/packages/rinvex-laravel-menus)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)[dcblogdev/laravel-junie

Install pre-configured guides for Jetbrains Junie

392.5k](/packages/dcblogdev-laravel-junie)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
