PHPackages                             fleetlog/fleetlog-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. fleetlog/fleetlog-php

ActiveLibrary[API Development](/categories/api)

fleetlog/fleetlog-php
=====================

Simple PHP Wrapper for Fleetlog API v2 calls

v0.0.3(10y ago)0231Apache-2.0PHP

Since Dec 17Pushed 10y ago4 watchersCompare

[ Source](https://github.com/fleetlog/fleetlog-php)[ Packagist](https://packagist.org/packages/fleetlog/fleetlog-php)[ Docs](https://github.com/fleetlog/fleetlog-php)[ RSS](/packages/fleetlog-fleetlog-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

fleetlog-php
============

[](#fleetlog-php)

Fleetlog API wrapper

- Include the class in your PHP code
- Set your access\_token to FleetlogAPI
- Make request

Installation
------------

[](#installation)

**Normally:** Include TwitterAPIExchange.php in your application.

**Composer:** Add to your composer.json file to have FleetlogAPI.php automatically imported into your vendors folder:

```
{
    "require": {
        "fleetlog/fleetlog-php": "dev-master"
    }
}

```

Of course, you'll then need to run `php composer.phar update`.

How To Use
----------

[](#how-to-use)

#### Include the class file

[](#include-the-class-file)

```
require_once('FleetlogAPI.php');
```

Obtain an access token (client\_credentials grant)
--------------------------------------------------

[](#obtain-an-access-token-client_credentials-grant)

```
$body = array(
	'grant_type' => 'client_credentials',
	'client_id' => 'yourCLientId',
	'client_secret' => 'yourClientSecret'
);

$customHeaders = ['Content-type: application/x-www-form-urlencoded'];
$fleetlog = new \FleetlogAPI();
$resultBody = $fleetlog->request('token', 'POST', $body, $customHeaders);
echo json_encode($resultBody);

$fleetlog->setAccessToken($resultBody->access_token);
$vehicles =  $fleetlog->request('vehicles', 'GET');
echo json_encode($vehicles);
```

GET Request Example
-------------------

[](#get-request-example)

\[GET\]

```
$settings = array(
	'oauth_access_token' => "your_access_token",
);

$requestMethod = 'GET';
$fleetlog = new FleetlogAPI($settings);
echo json_encode($fleetlog->request('vehicles/222', 'GET'));
```

\[GET\]

```
$settings = array(
	'oauth_access_token' => "your_access_token",
);

$requestMethod = 'GET';
$fleetlog = new FleetlogAPI($settings);
echo json_encode($fleetlog->request('vehicles/222/positions', 'GET'));
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3805d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/74317dc6b2db9b5c032caa91cc25115bf6e107d22c09ffffc119eeaf8fcee344?d=identicon)[visvk](/maintainers/visvk)

---

Top Contributors

[![visvk](https://avatars.githubusercontent.com/u/4169046?v=4)](https://github.com/visvk "visvk (14 commits)")

---

Tags

phpapifleetlog

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fleetlog-fleetlog-php/health.svg)

```
[![Health](https://phpackages.com/badges/fleetlog-fleetlog-php/health.svg)](https://phpackages.com/packages/fleetlog-fleetlog-php)
```

###  Alternatives

[jstolpe/instagram-graph-api-php-sdk

Instagram Graph API PHP SDK

13998.4k2](/packages/jstolpe-instagram-graph-api-php-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
