azzarip/utilities
Composer 安装命令:
composer require azzarip/utilities
包简介
Utilities for websites using Laravel
README 文档
README
Contains utilities classes used on all Pizza Azzari websites.
CHF
Contains the CHF object. It reads rappe integers as
CHF::int(142) // 1.42 CHF
CHF::chf(1.42) // 1.42 CHF
The CHF objects outputs the string value as
$chf = CHF::int(100)
{{ $chf }} // 1.00
$chf->format() // 1.-
$chf->label() // CHF 1.-
Cookie
Add before the end of the html document
@livewire('cookie-consent')
It will spawn a modal with three options:
- Accept all
- Only Essentials
- Modify Depending on the choice of the user, it will deploy a cookie that will confirm the acceptance of the cookie policy.
The cookie is calle cookie_consent is not encrypted, and contains a timestamp, the three consent (optional, marketing, analytics) and a version of the cookie banner.
The cookie is refreshed every time, expires after one year or with a change of version.
Admin Panel
Installation
Run the following artisan command:
php artisan admin-panel:install
It will create a view/admin-panel directory with home.blade.php inside.
This file access the admin home page at home.DOMAIN_BASE.
Other console commands
Install a new panel, which is automatically discovered.
php artisan admin-panel:make panel_name
Creates a new panel with name panel_name. It is automatically discovered, when the 1 day cache expires.
To refresh the cache use
php artisan admin-panel:refresh
azzarip/utilities 适用场景与选型建议
azzarip/utilities 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 556 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 02 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 azzarip/utilities 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 azzarip/utilities 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 556
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 9
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-02-25