2017 © Pedro Peláez
 

library bd-stock-exchange-update

PHP library to fetch bangladesh share market updates, including Dhaka and Chittagong Stock Exchange (DSE & CSE).

image

simongomes/bd-stock-exchange-update

PHP library to fetch bangladesh share market updates, including Dhaka and Chittagong Stock Exchange (DSE & CSE).

  • Tuesday, July 24, 2018
  • by gomessimon
  • Repository
  • 1 Watchers
  • 7 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Dhaka & Chittagong Stock Exchange Update (DSE & CSE)

A PHP library to fetch updates from Bangladesh share market, including Dhaka and Chittagong Stock Exchange (DSE & CSE)., (*1)

DSE, CSE, (*2)

Installation

  • ##### Install using composer (or go to Manual Installation) composer require simongomes/bd-stock-exchange-update

or, add the following into your composer.json file, (*3)

"require": {
        "simongomes/bd-stock-exchange-update": "^1.0"
}

Usages

<?php
    require __DIR__ . '/vendor/autoload.php';
    use Simon\BDShareMarket;

    $BDShareMarket = new BDShareMarket();
    print_r($BDShareMarket->getDSEData());
  • ##### Manual installation

Download the latest release., (*4)

Latest Version, (*5)

Usages

  • Include the library
<?php
    require __DIR__ . '/lib/autoload.php';  
    use Simon\BDShareMarket;
  • Create an object and call the necessary methods, (*6)

    To fetch the updated from DSE use following
$BDShareMarket = new BDShareMarket();

// this will print the DSE data
print_r($BDShareMarket->getDSEData());

Output

Array
(
    [0] => Array
        (
            [company] => 1JANATAMF
            [ltp] => 6.1
            [high] => 6.1
            [low] => 6.1
            [closep] => 6.1
            [ycp] => 6.2
            [change] => -0.1
            [trade] => 28
            [value] => 0.25
            [volume] => 40,942
        )

    [1] => Array
        (
            [company] => 1STPRIMFMF
            [ltp] => 11.4
            [high] => 11.4
            [low] => 11.2
            [closep] => 11.4
            [ycp] => 11.2
            [change] => 0.2
            [trade] => 107
            [value] => 1.973
            [volume] => 174,194
        )

    [2] => Array
        (
            [company] => AAMRANET
            [ltp] => 91.2
            [high] => 92
            [low] => 85.3
            [closep] => 91
            [ycp] => 84.2
            [change] => 7
            [trade] => 3,011
            [value] => 144.176
            [volume] => 1,616,666
        )
        ...


, (*7)

To fetch the updated for specific company from DSE use following
// To print DSE data for specific company replace COMPANY_NAME
print_r($BDShareMarket->getDSECompanyData('COMPANY_NAME'));


, (*8)

##### To fetch the updated from CSE use following, (*9)

php print_r($BDShareMarket->getCSEData());, (*10)


, (*11)

##### To fetch the updated for specific company from CSE use following php // To print CSE data for specific company replace COMPANY_NAME print_r($BDShareMarket->getCSECompanyData('COMPANY_NAME'));, (*12)

Courtesy & Contributions

Thanks goes to Khyrul Alam for the inspiration. A similar JavaScript library will be found here - DSE-CSE-Market-Update JS Library, (*13)

License

License, (*14)

Copyright (c) 2018, Simon Gomes, (*15)

The Versions

24/07 2018

dev-master

9999999-dev

PHP library to fetch bangladesh share market updates, including Dhaka and Chittagong Stock Exchange (DSE & CSE).

  Sources   Download

MIT

library bangladesh cse dse bd stock exchange bd share market bangladesh stock exchange bangladesh share market dhaka stock exchange chittagong stock exchange

23/07 2018

v1.0.0

1.0.0.0

PHP library to fetch bangladesh share market updates, including Dhaka and Chittagong Stock Exchange (DSE & CSE).

  Sources   Download

MIT

library bangladesh cse dse bd stock exchange bd share market bangladesh stock exchange bangladesh share market dhaka stock exchange chittagong stock exchange