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 12y 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 2d 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 52% 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

4507d 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

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k9.6k1](/packages/vinkius-labs-laravel-page-speed)[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.

24323.9k](/packages/aliziodev-laravel-taxonomy)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90128.1k](/packages/emargareten-inertia-modal)[linkxtr/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

3614.9k](/packages/linkxtr-laravel-qrcode)

PHPackages © 2026

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