vdlp/oc-hashids-plugin
Composer 安装命令:
composer require vdlp/oc-hashids-plugin
包简介
Allows developers to use secure hashed ID's in October CMS powered websites.
README 文档
README
Vdlp.Hashids
Allows developers to use secure hashed ID's.
Fetches RSS/Atom feeds to put on your website. It can be automated using a cronjob or triggered manually.
It converts numbers like 347 into strings like "yr8", or array of numbers like [27, 986] into "3kTMd".
You can also decode those ids back. This is useful in bundling several parameters into one or simply using them as short UIDs.
Requirements
- PHP 8.0.2 or higher
- October CMS 2.x or higher
Installation
composer require vdlp/oc-hashids-plugin
Configuration
To configure this plugin execute the following command:
php artisan vendor:publish --provider="Vdlp\Hashids\ServiceProvider" --tag="config"
This will create a config/hashids.php file in your app where you can modify the configuration.
Example
Here you can see an example of how to use this plugin. Out of the box, the default configuration used is main.
// You can use this class with Dependency Injection
use Vdlp\Hashids\Classes\HashidsManager;
/** @var HashidsManager $hashids */
$hashidsManager = resolve(HashidsManager::class);
// Encodes the integer 1 to a hashid using the default configuration
$hashidsManager->encode(1);
$hashidsManager->instance()->encode(1);
// Encodes the integer 1 to a hashid using a different configuration
$hashidsManager->instance('different-configuration')->encode(1);
Questions? Need help?
If you have any question about how to use this plugin, please don't hesitate to contact us at octobercms@vdlp.nl. We're happy to help you. You can also visit the support forum and drop your questions/issues there.
vdlp/oc-hashids-plugin 适用场景与选型建议
vdlp/oc-hashids-plugin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 20.54k 次下载、GitHub Stars 达 4, 最近一次更新时间为 2019 年 01 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 vdlp/oc-hashids-plugin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 vdlp/oc-hashids-plugin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 20.54k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-only
- 更新时间: 2019-01-18