iyba/mates-api

This package is abandoned and no longer maintained. The author suggests using the iyba/mates-api package instead.

MATES API Parsing PHP Library

v1.0.0 2017-06-14 17:37 UTC

This package is not auto-updated.

Last update: 2018-03-31 21:29:50 UTC


README

MATES API Parsing PHP Library

Installation using composer

composer require iyba/mates-api

Initializing API


$dmm = new DMMBridgeAPI($api_key);

$filters = [
   'status' => '',
   'soldSince'=>'2011-11-01T00:00:00Z',
   'modifiedSince' => '2011-11-01T00:00:00Z',
   'start' => 0,
   'rows' => 10,
   'owner' => '1234,1235,1236'
];

$boats = $dmm->boats($filters);

Get Complete MATES Response Object

Format: XML

$boats->getXML();

Format: JSON

$boats->getJSON();

Format: PHP Object

$boats->getObjects();

Get Vessel PHP Objects

$boats->getVesselObjects();