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

ActiveLaravel-package[Utility &amp; Helpers](/categories/utility)

oleaass/laravel-categories
==========================

Add cateogires to any Laravel applications

v1.0.0(4y ago)04MITPHP

Since Aug 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/oleaass/laravel-categories)[ Packagist](https://packagist.org/packages/oleaass/laravel-categories)[ GitHub Sponsors](https://github.com/oleaass)[ RSS](/packages/oleaass-laravel-categories/feed)WikiDiscussions master Synced yesterday

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

Add categories to you Laravel models
====================================

[](#add-categories-to-you-laravel-models)

The code uses polymorphic relations, which allows for simple but robust implementation of categories on any model you might have in your application.

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

[](#installation)

```
$ composer require oleaass/laravel-categories

```

Usage
-----

[](#usage)

### Prepare your model

[](#prepare-your-model)

```
use OleAass\Categories\HasCategories;

class Product extends Model
{
	use Categorizable;
}
```

Support Me
----------

[](#support-me)

I spend my free time making packages. So if you want to support me and my work, I would really appreciate if you bough me a coffee.

[![Buy Me A Coffee](https://camo.githubusercontent.com/9f44ce2dc3b3eecdd02598900866ffc518801df1932849703dae1e5ce5031070/68747470733a2f2f7777772e6275796d6561636f666665652e636f6d2f6173736574732f696d672f637573746f6d5f696d616765732f6f72616e67655f696d672e706e67)](https://www.buymeacoffee.com/oleaass)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1726d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/46921124?v=4)[Ole Aass](/maintainers/oleaass)[@oleaass](https://github.com/oleaass)

---

Top Contributors

[![oleaass](https://avatars.githubusercontent.com/u/46921124?v=4)](https://github.com/oleaass "oleaass (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[sbodak/magento2-checkout-custom-form

Add a custom form to Magento 2 checkout on the shipping step.

1013.5k](/packages/sbodak-magento2-checkout-custom-form)

PHPackages © 2026

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