PHP code example of simongomes / bd-stock-exchange-update

1. Go to this page and download the library: Download simongomes/bd-stock-exchange-update 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/ */

    

simongomes / bd-stock-exchange-update example snippets



    imon\BDShareMarket;
    
    $BDShareMarket = new BDShareMarket();
    print_r($BDShareMarket->getDSEData());


    imon\BDShareMarket;

$BDShareMarket = new BDShareMarket();

// this will print the DSE data
print_r($BDShareMarket->getDSEData());
    
// To print DSE data for specific company replace COMPANY_NAME
print_r($BDShareMarket->getDSECompanyData('COMPANY_NAME'));
    

print_r($BDShareMarket->getCSEData());
 

// To print CSE data for specific company replace COMPANY_NAME
print_r($BDShareMarket->getCSECompanyData('COMPANY_NAME'));