PHPackages                             virtualorz/cate - 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. virtualorz/cate

ActiveLibrary

virtualorz/cate
===============

1.1.2(7y ago)0272PHP

Since May 31Pushed 7y agoCompare

[ Source](https://github.com/virtualorz/cate)[ Packagist](https://packagist.org/packages/virtualorz/cate)[ RSS](/packages/virtualorz-cate/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (13)Used By (2)

Installation
============

[](#installation)

### install by composer

[](#install-by-composer)

```

composer require virtualorz/cate

```

### edit config/app.php

[](#edit-configappphp)

```

'providers' => [
    ...
    Virtualorz\Fileupload\FileuploadServiceProvider::class,
    Virtualorz\Cate\CateServiceProvider::class,
    ...
]

'aliases' => [
    ...
    'Fileupload' => Virtualorz\Fileupload\FileuploadFacade::class,
    'Cate' => Virtualorz\Cate\CateFacade::class,
    ...
]

```

### migration db table

[](#migration-db-table)

```

php artisan migrate

```

usage
=====

[](#usage)

#### 1. get cate list data

[](#1-get-cate-list-data)

```

$dataArray = Cate::list('use type');

```

use type : eg. news, member , product ...etc, different type in your application $dataArray : return array in two elements : \[without\_sub\_cate\_structure,with\_sub\_cate\_structure\]

#### 2. add data to cate

[](#2-add-data-to-cate)

```

Cate::add('use type');

```

with request variable name required : cate-parent\_id,ate-name,cate-order,cate-enable,cate-select\_photo

#### 3. get cate detail

[](#3-get-cate-detail)

```

$dataRow = Cate::detail($cate_id);

```

#### 4. edit data to cate

[](#4-edit-data-to-cate)

```

Cate::edit();

```

with request variable name required : cate-parent\_id,ate-name,cate-order,cate-enable,cate-select\_photo

#### 5. delete cate data

[](#5-delete-cate-data)

```

Cate::delete();

```

with request variable name required : id as integer or id as array

#### 6. enable cate data

[](#6-enable-cate-data)

```

Cate::enable($type);

```

with request variable name required : id as integer or id as array $type is 0 or1 , 0 to disable i to enable

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity70

Established project with proven stability

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

12

Last Release

2898d ago

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/virtualorz-cate/health.svg)

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

PHPackages © 2026

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