jinjie / stock
Display stock widget in SilverStripe
0.0.7
2019-06-12 08:36 UTC
Requires
- php: >=7.1
- kokspflanze/alpha-vantage-api: ^0.3
- silverstripe/cms: ^4
This package is auto-updated.
Last update: 2026-03-13 00:08:58 UTC
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.