2017 © Pedro Peláez
 

library intrinio

A PHP Client for Intrinio financial data feeds.

image

elvismdev/intrinio

A PHP Client for Intrinio financial data feeds.

  • Friday, July 21, 2017
  • by elvismdev
  • Repository
  • 2 Watchers
  • 1 Stars
  • 65 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 242 % Grown

The README.md

Intrinio PHP Client

Unofficial and simple Intrinio API client for PHP. Gives easy access to stock market data., (*1)

Requirements

  • PHP 7.0+

Installation

composer require elvismdev/intrinio

Example Usage

<?php
require_once __DIR__ . '/vendor/autoload.php';
use Elvismdev\Intrinio\Intrinio;

$intrinio = new Intrinio(
    'INTRINIO_API_USERNAME',
    'INTRINIO_API_PASSWORD'
    );

// All companies covered by Intrinio.
$companies = $intrinio->request('companies');
print_r($companies);

// Single company information
$params = [
'identifier'    => 'AAPL'
];
$company = $intrinio->request(
    'companies',
    $params
    );
print_r($company);

// Historical data for single company.
$params = [
'identifier'    => 'AAPL'
];
$historical_data = $intrinio->request(
    'historical_data',
    $params
    );
print_r($historical_data);

// Total current assets data for single company, in a quaterly period.
$params = [
'identifier'    => 'AAPL',
'item'      => 'totalcurrentassets',
'type'      => 'QTR'
];
$totalcurrentassets = $intrinio->request(
    'historical_data',
    $params
    );
print_r($totalcurrentassets);

Follow up the official Intrino API documentation and query with corresponding endpoint slug and parameters like in the example codes above., (*2)

The Versions

21/07 2017

dev-master

9999999-dev

A PHP Client for Intrinio financial data feeds.

  Sources   Download

MIT

The Requires

 

by Elvis Morales

18/07 2017

v1.0.0

1.0.0.0

A PHP Client for Intrinio financial data feeds.

  Sources   Download

MIT

The Requires

 

by Elvis Morales