hassanzohdy/mongez
Composer 安装命令:
composer require hassanzohdy/mongez
包简介
A Robust application handler for building neat laravel application(s).
README 文档
README
This project aims to make using Laravel framework more organized and extensible.
Table of contents
Requirements
- Laravel
>=11
For compatibility with Laravel 10, please use version 3.0 of this package.
For compatibility with older versions of Laravel, please use version 2.x of this package.
Installation
Run the following Command in your cli.
composer require hassanzohdy/mongez
Configurations
Once its done run the following command to create the config/mongez.php file.
php artisan vendor:publish --provider="HZ\Illuminate\Mongez\Providers\MongezServiceProvider"
Translatable
<?php use HZ\Illuminate\Mongez\Translation\Traits\Translatable; class MyClass { use Translatable; public function index() { $this->transUsers('users.name'); // will translate from `Users` module and `users` file and the keyword is `name $this->transUsers('usersGroups.permissions'); // will translate from `Users` module and `usersGroups` file and the keyword is `permissions } }
Change Log
- 3.1.0 (29 Sep 2024)
- Update codebase to support laravel 11+
- Remove Carbon
setWeekStartsAtandsetWeekEndsAtas it was removed from carbon.
- 3.0.1 (29 Sep 2024)
- Update codebase to support laravel 10 with new mongodb elquent integration
- 2.24.2 (24 Dec 2023)
- Fixed request sql options is overwritten by current class sql options
- 2.24.1 (24 Nov 2022)
- Fixed empty array of date in
date_response.
- Fixed empty array of date in
- 2.24.0 (24 Nov 2022)
- Enhanced Resource Manager Errors to display the resource class name.
- 2.23.5 (23 Oct 2022)
- Now generated model will have
castsproperty instead ofdatesfor date casting.
- Now generated model will have
- 2.23.4 (22 Oct 2022)
- Fixed defining the class namespace of
UTCDateTimeinfunctions.phpfile.
- Fixed defining the class namespace of
- 2.23.3 (22 Oct 2022)
- Fixed collectables to return proper array syntax instead of objects.
- 2.22.2 (28 Aug 2022)
- Fixed
ARRAYABLE_DATAon listing as it is encoded to json.
- Fixed
- 2.22.1 (28 Aug 2022)
RepositoryManager.wrapManywill return empty array without passing the collection to the resource if teh given array|collection is empty.
- 2.22.0 (28 Aug 2022)
config/mongez.phpconfig- Changed
misckey todate. - Changed
CarbonImmutabletoimmutableunderdatekey. - Added
week_starts_atand defaults toSaturday. - Added
week_ends_atand defaults toFriday.
- 2.21.0 (27 Aug 2022)
- Added
getPaginationInfoin the repository manager. getPaginateInfonow is deprecated and will be removed in V3.0.- Added
firstmethod to return the first matched element, takes the same array options aslistModelsand return one model.
- Added
- 2.20.0 (27 Aug 2022)
- Added
saveActionTypeproperty to the repository, it can be used insetData, and its value will depend on the current action,static::CREATE_ACTION|static::UPDATE_ACTION|static::PATCH_ACTION.
- Added
- 2.18.0 (17 Aug 2022)
- Added
date_responseto format the given date totimestamphumanTimetextandformatoutputs. - Added
localized_dateto convert the given date into formatted date based on the locale code. - Used
date_responsein the resource manager to collect dates.
- Added
- 2.17.0 (15 Aug 2022)
- Added Aggregate Utilities
- 2.16.0 (14 Aug 2022)
- Added
dateanddate:betweenfilters toFILTER_BYrepository constant.
- Added
- 2.15.0 (12 Aug 2022)
- Added
carbonImmutablefeature to change thenowfunction into immutable carbon instance.
- Added
- 2.14.0 (10 Aug 2022)
- Added
LOCATION_DATAconstant to resource manager to return proper geo location data.
- Added
- 2.12.0 (26 July 2022)
- Added
LOCALIZED_COLLECTABLE_DATAconstant to resource manager to localize data that are in array list.
- Added
- 2.11.0 (23 July 2022)
- Now
WHEN_AVAILABLEin resource manager if set totrue, it will strip out any missing value from the model so the resource will only return existing data without any default values for any missing data.
- Now
- 2.1.21 (28 Feb 2022)
- Fixed Multiple Trait Methods Alias
- 2.1.20 (28 Feb 2022)
- Fixed Missing Semi Colon
- 2.1.19 (28 Feb 2022)
- Fixed
Model,ResourceandFilterin the repository while creating child module to receive the child module name instead of the parent module.
- Fixed
- 2.1.17 (28 Feb 2022)
- Added
Translatabletrait.
- Added
- 2.1.14 (28 Feb 2022)
- Fixed generated
databasedirectory to beDatabase.
- Fixed generated
Documentation
See full documentation in the wiki page.
hassanzohdy/mongez 适用场景与选型建议
hassanzohdy/mongez 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.25k 次下载、GitHub Stars 达 19, 最近一次更新时间为 2019 年 09 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「module」 「builder」 「laravel」 「mongez」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 hassanzohdy/mongez 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 hassanzohdy/mongez 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 hassanzohdy/mongez 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Sphinx Query Builder extension for the Laravel Database package
Anax Database Active Record module for model classes.
A simple package to create tables in Discord messages.
bootstrap select field module implementing http://silviomoreto.github.io/bootstrap-select/
Create mail from controller action render
Yii2 module to manage website content. Kind of a CMS...
统计信息
- 总下载量: 2.25k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 19
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-09-21