Download the PHP package fleetbase/samsara-api without Composer

On this page you can find all versions of the php package fleetbase/samsara-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package samsara-api

A comprehensive Fleetbase extension that integrates with the Samsara API for vehicle data import and real-time location tracking. This extension enables fleet operators to seamlessly sync vehicle data from Samsara into their Fleetbase instance, providing unified fleet management capabilities.


Overview

The Samsara Extension bridges the gap between Samsara's fleet management platform and Fleetbase's comprehensive logistics solution. It provides real-time vehicle data synchronization, location tracking, and event processing capabilities that enhance fleet visibility and operational efficiency.

Key Benefits

Features

Core Functionality

Advanced Features

Structure

Installation

Backend

Install the PHP packages using Composer:

Frontend

Install the Ember.js Engine/Addon:

Configuration

Environment Variables

Add the following environment variables to your .env file:

Samsara API Credentials

The extension requires Samsara API credentials to function. You can configure these through the Fleetbase console:

  1. Navigate to FleetOps > Settings > Samsara
  2. Click Add Credential
  3. Fill in the required information:
    • Name: A descriptive name for the credential set
    • API Token: Your Samsara API token
    • API Base URL: Usually https://api.samsara.com (leave blank for default)
    • Environment: Select Sandbox or Production
    • Sync Interval: How often to sync vehicle data (1-60 minutes)

Webhook Configuration

For real-time updates, configure webhooks in your Samsara dashboard:

  1. Webhook URL: https://api.fleetbase.io/int/v1/samsara/webhook/{companyId}
  2. Events: Select the events you want to receive:
    • Vehicle Location Updates
    • Vehicle Information Changes
    • Alert Events
  3. Secret: Generate a webhook secret for signature verification

Usage

Basic Vehicle Synchronization

Once configured, the extension automatically synchronizes vehicle data from Samsara. You can also trigger manual synchronization:

  1. Navigate to FleetOps > Settings > Samsara > Vehicles
  2. Click Sync All to import all vehicles
  3. Use the Sync button next to individual vehicles for selective updates

Permissions & Security

The extension implements comprehensive role-based access control with the following permission structure:

Permission Categories

Credential Permissions

Vehicle Permissions

Webhook Permissions

Administrative Permissions

Predefined Roles

Samsara Viewer

Basic read-only access to view vehicles, credentials, and events.

Samsara Operator

Operational access including vehicle syncing and linking capabilities.

Samsara Manager

Management access including credential management and webhook configuration.

Samsara Administrator

Full administrative access to all extension features.

Usage

Backend

๐Ÿงน Keep a modern codebase with PHP CS Fixer:

โš—๏ธ Run static analysis using PHPStan:

โœ… Run unit tests using PEST

๐Ÿš€ Run the entire test suite:

Frontend

๐Ÿงน Keep a modern codebase with ESLint:

โœ… Run unit tests using Ember/QUnit

๐Ÿš€ Start the Ember Addon/Engine

๐Ÿ”จ Build the Ember Addon/Engine

Contributing

See the Contributing Guide for details on how to contribute to this project.

License

This project is licensed under the AGPL-3.0-or-later License. See the LICENSE file for details.


Developed by Fleetbase

For support, please contact documentation.


All versions of samsara-api with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
fleetbase/core-api Version *
php-http/guzzle7-adapter Version ^1.0
psr/http-factory-implementation Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package fleetbase/samsara-api contains the following files

Loading the files please wait ...