Skip to content

davidwisch/cake-stock-data

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

A Simple CakePHP component that using cURL to grab stock data form Yahoo.

More info on how to modify what data is coming through can be found here: http://www.gummy-stuff.org/Yahoo-data.htm

Installation
1. Place stocks.php in app/controllers/components/
2. In the controller you are working with make sure to add Stocks to the components array. 
(I.E. var $components = array('Stocks');)

Usage
Pass the 'get' function an array of stock symbols:
$this->Stocks->get(array('AAPL'));

And you should receive an array that looks like this:
Array
(
    [0] => Array
        (
            [symbol] => "AAPL"
            [change] => "-1.31"
            [current] => 203.91
        )
)

About

CakePHP Stock Data Component

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%