New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

adecks/trafficza

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adecks/trafficza

This is a convinient PHP Package that interacts with the https://www.i-traffic.co.za

Source
Packagist
Version
0.1
Version published
Total downloads
4
Maintainers
1
Created
Source

iTraffic ZA PHP

Latest Version on Packagist

Total Downloads

Tests

This package is creates convenient classes for iTraffic Models. see more @ https://www.i-traffic.co.za

Installation

You can install the package via composer:


composer require adecks/trafficza

Usage


// Interacting with the iTraffic API
use Adecks\TrafficZA\Traffic;

public function getTrafficEvents() {

	$traffic = new Traffic('YOUR_API_KEY');
	
	$events = $traffic->getEvents();

	foreach($events as $event) {
		$event->getReported();
	}
}

iTraffic Models

Adecks\TrafficZA\Alert::class
Adecks\TrafficZA\Camera::class
Adecks\TrafficZA\Event::class
Adecks\TrafficZA\MessageSign::class
Adecks\TrafficZA\Roadway::class

Testing


composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email andrekendeck@icloud.com instead of using the issue tracker.

Credits

  • Andre Kendeck

License

The MIT License (MIT). Please see License File for more information.

Keywords

routes

FAQs

Package last updated on 22 Mar 2022

Related posts