https://github.com/ridvanbaluyos/mmda
A PHP Library built for the MMDA Traffic Update.
https://github.com/ridvanbaluyos/mmda
library mmda php traffic
Last synced: 5 months ago
JSON representation
A PHP Library built for the MMDA Traffic Update.
- Host: GitHub
- URL: https://github.com/ridvanbaluyos/mmda
- Owner: ridvanbaluyos
- License: mit
- Created: 2015-02-25T20:08:56.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2020-06-12T10:26:47.000Z (about 6 years ago)
- Last Synced: 2025-10-11T17:13:50.285Z (9 months ago)
- Topics: library, mmda, php, traffic
- Language: PHP
- Size: 17.6 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ridvanbaluyos/mmda
=======
An MMDA Traffic Navigator package for PHP
> Traffic Data downloaded from: [MMDA-TV5 Metro Manila Traffic Navigator](http://mmdatraffic.interaksyon.com/)
[](https://packagist.org/packages/ridvanbaluyos/mmda) [](https://packagist.org/packages/ridvanbaluyos/mmda) [](https://scrutinizer-ci.com/g/ridvanbaluyos/mmda/?branch=master) [](https://scrutinizer-ci.com/g/ridvanbaluyos/mmda/build-status/master) [](https://www.codacy.com/app/ridvanbaluyos/mmda?utm_source=github.com&utm_medium=referral&utm_content=ridvanbaluyos/mmda&utm_campaign=Badge_Grade) [](https://packagist.org/packages/ridvanbaluyos/mmda)
## Table of contents ##
- [Installation](#installation)
- [Usage](#usage)
- [Traffic Data](#getting-traffic-data)
- [Highways](#getting-major-highways)
- [Segments](#getting-highway-segments)
- [Credits](#special-thanks-to)
### Installation ##
Open your `composer.json` file and add the following to the `require` key:
"ridvanbaluyos/mmda": "1.1"
---
After adding the key, run composer update from the command line to install the package
```bash
composer install
```
or
```bash
composer update
```
### Usage ##
```php
traffic();
```
#### Getting Major Highways
```php
$mmda->highways();
```
#### Getting Highway Segments
```php
// parameter should be a valid highway (see getting major highways)
$mmda->segments('EDSA');
```
## Special thanks to:
* [Rem Cruz](https://github.com/remerico/) and his [Pebble MMDA App](https://github.com/remerico/pebble-mmda)
* [MMDA for iOS](https://itunes.apple.com/ph/app/mmda-for-ios/id464656389?mt=8) by Giro AppSolutions
* [MMDA for Androidâ„¢](https://play.google.com/store/apps/details?id=edu.up.ittc.mmda&hl=en) by UP ITDC