jinjie/stock
Composer 安装命令:
composer require jinjie/stock
包简介
Display stock widget in SilverStripe
README 文档
README
Display stock widget using AlphaVantage API
A very simple stock widget for my own use in a project. Please contribute to improve this module.
Require SilverStripe ^4
Installation
composer require jinjie/stock
Usage
Run dev/build and go to Settings > Stock Widget to configure the widget, which includes the API key.
Template
Display
Put $StockWidget anywhere in your template where you want the widget to be rendered.
Edit the template
Copy content in vendor/jinjie/stock to themes/<your theme>/templates/Stock/StockWidget.ss. Edit accordingly.
Cache
This module uses cache so it doesn't need to call the API that often. It is recommended to leave it as 60 seconds or more.
统计信息
- 总下载量: 36
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-02-01