javleds / traccar-api
Traccar API wrapper under simpligps-standard
Installs: 46
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 5
Open Issues: 0
pkg:composer/javleds/traccar-api
Requires
- ext-json: *
- guzzlehttp/guzzle: ^6.5
- orchestra/testbench: ^5.1
- simpligps/simpligps-standard: dev-master
Requires (Dev)
- fzaninotto/faker: ^1.9
This package is auto-updated.
Last update: 2025-09-29 02:50:11 UTC
README
Client Facade
You can use the client in order to make request to the global api,
it is auto=registered as TraccarClient by default but you can
change it by adding the alias in the conf/app.php
<?php return [ // ... 'aliases' => [ // ... 'CustomName' => Javleds\TraccarApi\Facades\Client::class, // ... ], ];
It could be used while we finish to develop each endpoint for the current API.
Usage
| Method | Is static | Parameters | Return type | Can throws |
|---|---|---|---|---|
| get | [x] | $url: string $parameters: array<k,v> $options: array<k,v> |
mixed | Exception |
| post | [x] | $url: string $parameters: array<k,v> $options: array<k,v> |
mixed | Exception |
| put | [x] | $url: string $parameters: array<k,v> $options: array<k,v> |
mixed | Exception |
| delete | [x] | $url: string $parameters: array<k,v> $options: array<k,v> |
mixed | Exception |
Models
Device
Properties
| Name | Type |
|---|---|
| $id | int |
| $name | string |
| $uniqueId | string |
| $status | string |
| $disabled | boolean |
| $lastUpdate | DateTime |
| $positionId | int |
| $groupId | int |
| $phone | string |
| $model | string |
| $contact | string |
| $category | string |
| $geofenceIds | int[] |
| $attributes | object |
Methods
| Method | Is static | Parameters | Return type | Can throws |
|---|---|---|---|---|
| find | [x] | $id: string | Device | Exception |
| delete | [ ] | string | Exception | |
| getId | [ ] | string | ||
| getName | [ ] | string |