PHPackages                             mahdikhorshidi/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. [Database &amp; ORM](/categories/database)
4. /
5. mahdikhorshidi/categories

ActiveLibrary[Database &amp; ORM](/categories/database)

mahdikhorshidi/categories
=========================

MahdiKhorshidi Categories is a polymorphic Laravel package, for category management. You can categorize any eloquent model with ease, and utilize the power of Nested Sets, and the awesomeness of Sluggable, and Translatable models out of the box.

06PHP

Since Dec 23Pushed 8y ago1 watchersCompare

[ Source](https://github.com/mahdikhorshidi/categories)[ Packagist](https://packagist.org/packages/mahdikhorshidi/categories)[ RSS](/packages/mahdikhorshidi-categories/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

MahdiKhorshidi Categories
=========================

[](#mahdikhorshidi-categories)

**MahdiKhorshidi Categories** is a polymorphic Laravel package, for category management. You can categorize any eloquent model with ease, and utilize the power of **[Nested Sets](https://github.com/lazychaser/laravel-nestedset)**, and the awesomeness of **[Sluggable](https://github.com/spatie/laravel-sluggable)**, and **[Translatable](https://github.com/spatie/laravel-translatable)** models out of the box.

[![Latest Version on Packagist](https://camo.githubusercontent.com/858dcdb9f0e69eeceb20564dec81405c2e6cf0787bf55ed9b97b0b32828809a8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d616864696b686f7273686964692f63617465676f726965732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mahdikhorshidi/categories)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/76e17ee450317753b446ebd5d89258549d902266c4a330afea37dbd942a75b81/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d616864696b686f7273686964692f63617465676f726965732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/mahdikhorshidi/categories)[![Coverage Status](https://camo.githubusercontent.com/3c501bc88315dce2d069341abf021ba98886645b09c984a02f6dcda745bbc820/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6d616864696b686f7273686964692f63617465676f726965732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/mahdikhorshidi/categories/code-structure)[![Quality Score](https://camo.githubusercontent.com/2111ece9d4bdb5d76320427c37d040f129563a9c899063a27b6bab721b9ede29/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6d616864696b686f7273686964692f63617465676f726965732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/mahdikhorshidi/categories)[![Total Downloads](https://camo.githubusercontent.com/896e6766afa208414794c71215bed81016d70943a3e5267ba2d895b159d00ab1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d616864696b686f7273686964692f63617465676f726965732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mahdikhorshidi/categories)

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

Structure
---------

[](#structure)

If any of the following are applicable to your project, then the directory structure should follow industry best practises by being named the following.

```
bin/
config/
src/
tests/
vendor/

```

Install
-------

[](#install)

Via Composer

```
$ composer require mahdikhorshidi/categories
```

Usage
-----

[](#usage)

```
$skeleton = new mahdikhorshidi\categories();
echo $skeleton->echoPhrase('Hello, League!');
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Mahdi Khorshidi](https://github.com/mahdikhorshidi)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

20

—

LowBetter than 12% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1815578?v=4)[Mahdi Khorshidi](/maintainers/mahdikhorshidi)[@mahdikhorshidi](https://github.com/mahdikhorshidi)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.8k117.8M121](/packages/jdorn-sql-formatter)[backup-manager/backup-manager

A framework agnostic database backup manager with user-definable procedures and support for S3, Dropbox, FTP, SFTP, and more with drivers for popular frameworks.

1.7k1.6M11](/packages/backup-manager-backup-manager)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M88](/packages/propel-propel1)[insolita/yii2-migration-generator

Set of gii tools for generating files for migration by schema of table , phpdoc or table data

108508.0k5](/packages/insolita-yii2-migration-generator)[xpdo/xpdo

A PDO-based Object/Relational Bridge Library

7088.4k4](/packages/xpdo-xpdo)[voku/session2db

A PHP library acting as a wrapper for PHP's default session handling functions which stores data in a MySQL database, providing both better performance and better security and protection against session fixation and session hijacking.

3220.0k](/packages/voku-session2db)

PHPackages © 2026

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