https://github.com/simongomes/bd-stock-exchange-update-php
A PHP library to fetch updates from Bangladesh share market, including Dhaka and Chittagong Stock Exchange (DSE & CSE).
https://github.com/simongomes/bd-stock-exchange-update-php
bangladesh bangladesh-share-market bangladesh-stock-exchange bd-share-market bd-stock-exchange chittagong-stock-exhange cse dhaka-stock-exchange dse library php-library
Last synced: about 2 months ago
JSON representation
A PHP library to fetch updates from Bangladesh share market, including Dhaka and Chittagong Stock Exchange (DSE & CSE).
- Host: GitHub
- URL: https://github.com/simongomes/bd-stock-exchange-update-php
- Owner: simongomes
- License: mit
- Created: 2018-07-23T06:19:08.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-24T08:23:16.000Z (over 7 years ago)
- Last Synced: 2025-10-17T15:08:40.579Z (4 months ago)
- Topics: bangladesh, bangladesh-share-market, bangladesh-stock-exchange, bd-share-market, bd-stock-exchange, chittagong-stock-exhange, cse, dhaka-stock-exchange, dse, library, php-library
- Language: PHP
- Homepage:
- Size: 8.79 KB
- Stars: 20
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://www.dsebd.org), [CSE](http://www.cse.com.bd)
## Installation
- ##### Install using ```composer``` (or go to [Manual Installation](#manual-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
getDSEData());
```
- ##### Manual installation
Download the latest release.
[](https://github.com/gomessimon/bd-stock-exchange-update-php/releases/)
#### Usages
- Include the library
```php
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
```php
// To print DSE data for specific company replace COMPANY_NAME
print_r($BDShareMarket->getDSECompanyData('COMPANY_NAME'));
```
##### To fetch the updated from CSE use following
```php
print_r($BDShareMarket->getCSEData());
```
##### 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'));
```
## Courtesy & Contributions
Thanks goes to [Khyrul Alam](https://github.com/khyrulAlam) for the inspiration. A similar JavaScript library will be found here - [DSE-CSE-Market-Update JS Library](https://github.com/khyrulAlam/DSE-CSE-Market-Update)
## License
[](http://opensource.org/licenses/MIT)
Copyright (c) 2018, Simon Gomes