silicondigital/roblox
Composer 安装命令:
composer require silicondigital/roblox
包简介
Roblox API for Laravel
README 文档
README
Unofficial Roblox API Wrapper for Laravel 9
Installation
composer require silicondigital/roblox
Functions
Badges
getBadge(int $badge_id)- Returns a single badgegetUniverseBadges(int $universe_id, int $limit = 10, string $sort_order = 'Asc')- Returns badges for a universegetUserBadges(int $user_id, int $limit = 10, string $sort_order = 'Asc')- Returns badges for a single usergetBadgeAwardedDates(int $user_id, array $badge_ids)- Returns the awarded dates for an array of badge ids for a user.
Caching Responses
To speed up your application this API provides caching functionality using Laravel's built in cache functions. You'll need to make sure this is configured before using this feature. Laravel Docs: Cache.
All API's will allow you to pass through options for the cache, the key must be unique otherwise it will be overwritten. Typically you should set the key name as what the response will be for example badge_{badge_id}.
| Option | Functionality | Example |
|---|---|---|
| key_name | A unique key name for the cached response | badge_1234 |
| ttl | How long the data will be cached for (in seconds) | 3600 |
| tags | An array of tags to append to the cached item | ['badges'] |
Internally the API will prefix the cache key with roblox_, if you wish to interact with the cached data directly using the Laravel cache facade see the below examples.
use Illuminate\Support\Facades\Cache; Cache::get('roblox_{your key name}'); // e.g roblox_badge_1234 Cache::tags(['badges'])->flush();
silicondigital/roblox 适用场景与选型建议
silicondigital/roblox 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 133 次下载、GitHub Stars 达 3, 最近一次更新时间为 2020 年 04 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「Roblox」 「laravel7」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 silicondigital/roblox 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 silicondigital/roblox 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 silicondigital/roblox 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A simple Laravel Library to connect/publish/subscribe to MQTT broker
Invisible reCAPTCHA For Laravel (Including 8). Forked albertcht/invisible-recaptcha which is abandoned
A simple Laravel Library to connect/publish/subscribe to MQTT broker
Alfabank REST API integration
Provides helper functions and validators in laravel.
Share links with Laravel 5/6/7/8
统计信息
- 总下载量: 133
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-29