PHP code example of kartulin / fmp-api-sdk

1. Go to this page and download the library: Download kartulin/fmp-api-sdk library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kartulin / fmp-api-sdk example snippets


use Kartulin\FmpApiSdk\FMP;

$token='you_api_key_here';

//You must initialize the client with $token
//You can use DI of your framework
$client = FMP::make($token);
// or
$client = new FMP($token);

// Select AAPL"
    +"name": "Apple Inc."
    +"price": 148.84
    +"changesPercentage": -0.53461844
    +"change": -0.80000305
    +"dayLow": 146.84
   any_data
  }
]