All Projects → simongomes → bd-stock-exchange-update-php

simongomes / bd-stock-exchange-update-php

Licence: MIT license
A PHP library to fetch updates from Bangladesh share market, including Dhaka and Chittagong Stock Exchange (DSE & CSE).

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to bd-stock-exchange-update-php

Misc
Miscellaneous Code and Docs
Stars: ✭ 46 (+130%)
Mutual labels:  dse
mesher-example
An example to illustrate the functionalities of Mesher
Stars: ✭ 16 (-20%)
Mutual labels:  cse
Co-ronaBD.info
Interactive Dashboard of Bangladesh for the Covid-19 Pandemic
Stars: ✭ 28 (+40%)
Mutual labels:  bangladesh
made-in-bangladesh
A curated list of awesome frameworks, libraries and softwares made in Bangladesh.
Stars: ✭ 136 (+580%)
Mutual labels:  bangladesh
coronainfobd
Real-time corona-virus tracker of Bangladesh 🇧🇩 which includes latest updates, data visualization, public awareness from WHO and some advice to aware people. 🥰❤
Stars: ✭ 46 (+130%)
Mutual labels:  bangladesh
COVID-19-Bangladesh-Android
An end to end tool from general public to govt portal & an awareness tool with CoronaVirus Facts, Mythbusters & Support to eradicate the language & context barrier of misinformation that's been spreading on social media & thus creating mass panic.
Stars: ✭ 57 (+185%)
Mutual labels:  bangladesh
bangladesh-geojson
Bangladesh GEOJSON - Divisions, Districts, Upazilas
Stars: ✭ 176 (+780%)
Mutual labels:  bangladesh
medicinedb
sqlite medicine database
Stars: ✭ 29 (+45%)
Mutual labels:  bangladesh
Movement-Pass-Clone
This project is a clone version of the Movement pass BD, a Govt site in Bangladesh. The purpose of this site was to collect movement pass for users to go outside in this pandemic Covid situation. This clone project is made by the popular Python web framework Django. Cheers !!!
Stars: ✭ 28 (+40%)
Mutual labels:  bangladesh
crusher
No description or website provided.
Stars: ✭ 21 (+5%)
Mutual labels:  dse
sgcs
Hitchhiker's Guide to SGCS
Stars: ✭ 61 (+205%)
Mutual labels:  cse
nagadApi
This is Bangladeshi nagad payment gateway api development library. This library can be used in any php application.
Stars: ✭ 20 (+0%)
Mutual labels:  bangladesh
CoronaTracker
A full stack framework to trace possible close-contact candidates within last specified days for an already detected covid-19 positive patient
Stars: ✭ 13 (-35%)
Mutual labels:  bangladesh
devSahinur
If you are forking please do not forget to star the repo
Stars: ✭ 20 (+0%)
Mutual labels:  bangladesh
bdapis
Rest API service. Build with NodeJS, Express, MongoDB
Stars: ✭ 65 (+225%)
Mutual labels:  bangladesh

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).

DSE, CSE

Installation

composer require simongomes/bd-stock-exchange-update

or, add the following into your composer.json file

"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.

Latest Version

Usages

  • Include the library
<?php
    require __DIR__ . '/lib/autoload.php';  
    use Simon\BDShareMarket;
  • Create an object and call the necessary methods
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
        )
        ...

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'));
    

To fetch the updated from CSE use following
print_r($BDShareMarket->getCSEData());

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

Courtesy & Contributions

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

License

License

Copyright (c) 2018, Simon Gomes

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].