BooyahMedia's PHP-QUOTE


PHPQuote v0.98 retreives Stock Market Quotes from Yahoo! Finance, and puts them in a variable (a PHP Class).

For an automated RSS Feed for stock quotes, check QuoteRSS.com - RSS Stock Quote Feeds.

As an example, here's the current (with 20 minute delay) RedHat Quote:
Symbol: RHAT
Last Trade:0.00
Change:N/A
Percentage Change:0.00
Volume:N/A
Date:N/A
Time:N/A
Open:N/A
High:N/A
Low:N/A
Previous Close:N/A
Name:RHAT
Bid:N/A
Ask:N/A
EPS:N/A
Year Low:N/A
Year High:N/A
PE Ratio:N/A

 
RHAT
 Last 0.00
 Change N/A 
 % Change 0.00% 
 Volume N/A 
 Last N/A 
PHPQuote By
BooyahMedia.com

The PHPQuote Class

Version 0.98 is fully functional, but limited in the options it performs. It will retrieve single quotes and put the information in a class with the variables:

TODO and Contributions

The upgrades planned for version 1.0 are:

  • Multiple Quotes (multiple ticker symbols for a single query).
  • Form Example (to demonstrate how to use a form for selectiong a symbol).
  • Contributions to PHP-Quote can be sent to scook@booyahmedia.com. We'll gladly accept quality upgrades, but they must fit under the GNU GPL License.

    Download

    You can download the current version here:

  • PHP-Quote_0.98.tar.gz

    ChangeLog

    v0.95 to v0.98

  • Added 10 new fields for stock information.
  • Forms still not implemented, nor the display functions completed, but it does use Yahoo!'s CSV output.

    v0.9 to v0.95

  • Removed Error when getting quotes with a "^" in them (index quotes). (found by Steven Webb)
  • Removed possible infinite loop when parsing the quote page.
  • v0.8 to v0.9

  • Added Error checking for page not found/server unavailable.
  • Added "Symbol Not Found" error checking for unkown ticker symbols.

  • PHP-Quote is free software from BooyahMedia.com - PHP and e-Business consultants. We'd appreciate a link to us if you use this software. Thanks!
    PHP-Quote is released with the standard GNU GPL License for open source software.