PHPackages                             zhyu/packages - 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. zhyu/packages

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

zhyu/packages
=============

some tools for laravel

0.5.1.0(1y ago)11.4k15MITPHPPHP &gt;=7.2.5CI failing

Since Jul 18Pushed 1y ago2 watchersCompare

[ Source](https://github.com/karajanchang/zhyu.packages)[ Packagist](https://packagist.org/packages/zhyu/packages)[ RSS](/packages/zhyu-packages/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (1)Dependencies (7)Versions (73)Used By (5)

```
First: How to install?

    1.composer require zhyu/packages
    2.php artisan vendor:publish --tag=zhyu --force
    3.php artisan migrate
    4.create fllow config in .env file
        #---super admin to manage resources
        ZHYU_ADMIN_USER_IDS=1
    5.Register alias in config/app.php
        'ZhyuGate' => Zhyu\Facades\ZhyuGate::class,
    6.append these lines in app\Providers\AuthServiceProvider.php boot method
        ZhyuGate::init();

    7.make usergroup model in \App folder

Second: Rules

    1.datatable ajax url parameters rules
        /ajax/{model}-{key}/{limit?}?query=UserName#=#david*UserPhone#=#0233223333
            ?query=parent_id#=#0
            ?query=parent_id#whereNull

Others:
    1.create reoureces route
    /resources

    2.In Contorller you can create these function to validate or filter request
        rules() rules_create() rules_edit() filter() filter_create() filter_edit()

Commands:
    1.repository
        php artisan make:repository {repository} --m={model}

    2.resource
        php artisan make:res {name} {--route=} {--m=}

    3.resource collection
        php artisan make:rcollection {name}

    4.datatable
        php artisan make:datatable {name} {--m=} {--act=} {--resource=}

    5.crud create all in one
        php artisan make:crud AAAController --r={repository} --m={model} --datatable={datatable} --route={route} --resource={resource} --act={act}
        *datatable ajax url: /ajax-{model}-{act}

Facades:
    1.ZhyuCurl
        $data = ZhyuCurl::url($url)->method($method)->json($params);
        $data = ZhyuCurl::url($url)->post($params);
        $data = ZhyuCurl::url($url)->put($params);
        $data = ZhyuCurl::url($url)->patch($params);
        $data = ZhyuCurl::url($url)->delete($params);
        $data = ZhyuCurl::url($url)->get($params);

```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.5% 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 ~27 days

Recently: every ~229 days

Total

71

Last Release

579d ago

PHP version history (3 changes)0.2.5PHP &gt;=5.6.0

0.2.6.2PHP &gt;=7.2.0

0.3.3.5PHP &gt;=7.2.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10708525?v=4)[karajanchang](/maintainers/karajanchang)[@karajanchang](https://github.com/karajanchang)

---

Top Contributors

[![karajanchang](https://avatars.githubusercontent.com/u/10708525?v=4)](https://github.com/karajanchang "karajanchang (238 commits)")[![jyun790430](https://avatars.githubusercontent.com/u/12692000?v=4)](https://github.com/jyun790430 "jyun790430 (4 commits)")[![tedyan1928](https://avatars.githubusercontent.com/u/52906724?v=4)](https://github.com/tedyan1928 "tedyan1928 (2 commits)")

---

Tags

laraveldatabaseeloquentrepositoryrepositories

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zhyu-packages/health.svg)

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

###  Alternatives

[czim/laravel-repository

Repository for Laravel (inspired by and indebted to Bosnadev/Repositories)

54110.0k4](/packages/czim-laravel-repository)

PHPackages © 2026

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