nobrainer-web/silverstripe-bilinfo
Composer 安装命令:
composer require nobrainer-web/silverstripe-bilinfo
包简介
Implementation of the danish Bilinfo GET listings API
关键字:
README 文档
README
Implementation of the danish Bilinfo GET listings API
The API is very limited as it simply returns a big payload of json with all vehicle listings.
composer require nobrainer-web/silverstripe-bilinfo
Requirements
- SilverStripe 4
- PHP 7.3 (for better json_encode error handling)
- A user at Bilinfo
API Credentials
The BilInfo API requires a username and password. You must set these in .env with these variables:
- SS_BILINFO_USER
- SS_BILINFO_PASSWORD
Example:
- SS_BILINFO_USER='demo'
- SS_BILINFO_PASSWORD='ocfB6XzF73'
Build Tasks
To pull down data from the BilInfo API and save it, you can use GetApiDataTask. This task should probably be run as a cron job, once a day.
Then you would use GetSinceDaysDataTask every hour or so, to get latest updated API data. The ?sincedays param is by default set 1.
Deletion
A Listing is "Sold" when the ExternalDeletedDate field is set.
By default automatic clean up of sold listings is enabled. This can be disabled on Listings::$enabled_automatic_cleanup.
Run dev/tasks/bi-cleanup-listings-task to clean up listings. It will check the Listings::$deletion_after_days_sold setting to decide if a Listing should be deleted or not
A note on DB fields in this module
All fields from the API are strings. Some of these fields are mapped to INT instead.
TODO
- Translations and proper strings for equipment names
- Support for Video/360 images
- Support to output other sizes of listing image urls
nobrainer-web/silverstripe-bilinfo 适用场景与选型建议
nobrainer-web/silverstripe-bilinfo 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 56 次下载、GitHub Stars 达 0, 最近一次更新时间为 2019 年 06 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「silverstripe」 「bilinfo」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 nobrainer-web/silverstripe-bilinfo 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 nobrainer-web/silverstripe-bilinfo 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 nobrainer-web/silverstripe-bilinfo 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Analytics chooser extensions for site settings.
CitaNZ's SilverStripe picture object and field for SilverStripe 4
bootstrap select field module implementing http://silviomoreto.github.io/bootstrap-select/
Allows you to defined CMS form structure via config.yml
A module for adding a podcast or multiple podcasts to your SilverStripe site. With support for audio, video or other files.
统计信息
- 总下载量: 56
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2019-06-13