Skip to content

ridvanbaluyos/mmda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ridvanbaluyos/mmda

An MMDA Traffic Navigator package for PHP

Traffic Data downloaded from: MMDA-TV5 Metro Manila Traffic Navigator

Latest Stable Version Total Downloads Scrutinizer Code Quality Build Status Codacy Badge License

Table of contents

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

composer install

or

composer update

Usage

<?php
// require the autoloader created upon composer install/update
require_once __DIR__ . '/vendor/autoload.php';

// namespace
use Ridvanbaluyos\Mmda\MMDA as MMDA;

// instantiate the MMDA object
$mmda = new MMDA();

Getting Traffic Data

$mmda->traffic();

Getting Major Highways

$mmda->highways();

Getting Highway Segments

// parameter should be a valid highway (see getting major highways)
$mmda->segments('EDSA');

Special thanks to: