Download the PHP package yidas/tw-stock-crawler without Composer
On this page you can find all versions of the php package yidas/tw-stock-crawler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package tw-stock-crawler
Taiwan Stock Crawler by PHP
PHP Crawler for Taiwan Stock Data (台股資料爬蟲)
OUTLINE
- Requirements
- Installation
- Usage
- Company Data
- Price
- EPS
- Dividend
- References
REQUIREMENTS
This library requires the following:
- PHP 5.4.0+|7.0+
INSTALLATION
Run Composer in your project:
composer require yidas/tw-stock-crawler
Then you could call it after Composer is loaded depended on your PHP framework:
USAGE
You could first configure the crawler with source or stockId, and then call the function you need.
Alternative source:
- "Yahoo" (default): Acceptable access restrictions
- "TWSE": Strict access restrictions
Company Data
Crawler::getCompanyData("2330");
:
Price
- Last Price
Crawler::getLastPrice("2330");
:
EPS
Crawler::getEPS("2330", 2020);
Dividend
- Dividend by year
Crawler::getDividend("2454", 2009);
:
- Dividend by half year
Crawler::getDividend("5283", 2019);
:
- Dividend by season
Crawler::getDividend("2330", 2020);
:
REFERENCES
All versions of tw-stock-crawler with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4
The package yidas/tw-stock-crawler contains the following files
Loading the files please wait ....