zhyu/packages
Larablocks Analysis
zhyu/packages works with Laravel 6 to 10 (latest release 0.5.1.0, Oct 15, 2024), all past end of life (the last on Feb 4, 2025): no more fixes, even for security.
Laravel 5 in earlier releases.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 6 to 10, past end of life since Feb 4, 2025
- No release in the last 12 months (last: Oct 15, 2024)
- 4 downloads a month (needs 10,000)
- 1 GitHub star (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Oct 15, 2024.
- No releases in the last 12 months.
- First released: Jul 18, 2019.
- Monthly downloads: 4.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 30, 2026.
| Install | |
|---|---|
composer require zhyu/packages |
|
| Latest Version: | 0.5.1.0 |
| PHP: | >=7.2.5 |
| Laravel: | 6 – 10 |
| Older releases: | 5 |
| License: | MIT |
| Last Updated: | Oct 15, 2024 |
| Links: | GitHub · Packagist |
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);
Alternatives to zhyu/packages
Repository for Laravel (inspired by and indebted to Bosnadev/Repositories)
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 0.5.1.0 | >=7.2.5 | ^6.0| | MIT | |
| 0.5.0.0 | >=7.2.5 | ^6.0| | MIT | |
| 0.4.2.0 | >=7.2.5 | ^6.0| | MIT | |
| 0.4.1.1 | >=7.2.5 | ^6.0| | MIT | |
| 0.4.1.0 | >=7.2.5 | ^6.0| | MIT | |
| 0.4.0.18 | >=7.2.5 | ^6.0| | MIT | |
| 0.4.0.17 | >=7.2.5 | ^6.0| | MIT | |
| 0.4.0.16 | >=7.2.5 | ^6.0| | MIT | |
| 0.4.0.15 | >=7.2.5 | ^6.0| | MIT | |
| 0.4.0.14 | >=7.2.5 | ^6.0| | MIT | |
| 0.4.0.13 | >=7.2.5 | ^6.0| | MIT | |
| 0.4.0.12 | >=7.2.5 | ^6.0| | MIT | |
| 0.4.0.11 | >=7.2.5 | ^6.0| | MIT | |
| 0.4.0.8 | >=7.2.5 | ^6.0| | MIT | |
| 0.4.0.7 | >=7.2.5 | ^6.0| | MIT | |
| 0.4.0.4 | >=7.2.5 | ^6.0| | MIT | |
| 0.4.0.1 | >=7.2.5 | ^6.0| | MIT | |
| 0.4.0.0 | >=7.2.5 | ^6.0| | MIT | |
| 0.3.6.9 | >=7.2.5 | ^6.0| | MIT | |
| 0.3.6.8 | >=7.2.5 | ^6.0| | MIT | |
| 0.3.6.7 | >=7.2.5 | ^6.0| | MIT | |
| 0.3.6.6 | >=7.2.5 | ^6.0| | MIT | |
| 0.3.6.5 | >=7.2.5 | ^6.0| | MIT | |
| 0.3.6.3 | >=7.2.5 | ^6.0| | MIT | |
| 0.3.6.2 | >=7.2.5 | ^6.0| | MIT | |
| 0.3.6.0 | >=7.2.5 | ^6.0| | MIT | |
| 0.3.5.8 | >=7.2.5 | ^6.0| | MIT | |
| 0.3.5.7 | >=7.2.5 | ^6.0| | MIT | |
| 0.3.5.6 | >=7.2.5 | ^6.0| | MIT | |
| 0.3.5.5 | >=7.2.5 | ^6.0| | MIT |
Showing the latest 30 of 70. See every release on Packagist