PHP code example of shahariaazam / bd-stock-exchange
1. Go to this page and download the library: Download shahariaazam/bd-stock-exchange 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/ */
shahariaazam / bd-stock-exchange example snippets
use ShahariaAzam\BDStockExchange\StockExchange\ChittagongStockExchange;
use ShahariaAzam\BDStockExchange\StockExchange\DhakaStockExchange;
use ShahariaAzam\BDStockExchange\StockPrice;
nge($dse);
var_dump($stock->getPricing()); // Return PricingEntity[]
var_dump($stock->toArray()); // Return as array
bash
docker run -it --rm shaharia/bd-stock-price:latest php bin/stock dse --json