PHPackages                             jalallinux/laravel-thingsboard - 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. jalallinux/laravel-thingsboard

ActiveLibrary[API Development](/categories/api)

jalallinux/laravel-thingsboard
==============================

ThingsBoard laravel client

331493[14 issues](https://github.com/jalallinux/laravel-thingsboard/issues)[3 PRs](https://github.com/jalallinux/laravel-thingsboard/pulls)PHPCI passing

Since Nov 1Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/jalallinux/laravel-thingsboard)[ Packagist](https://packagist.org/packages/jalallinux/laravel-thingsboard)[ RSS](/packages/jalallinux-laravel-thingsboard/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

Laravel [ThingsBoard.io](https://thingsboard.io/) Client
========================================================

[](#laravel-thingsboardio-client)

[![](cover.png)

 ](https://github.com/jalallinux/laravel-thingsboard)[![Latest Stable Version](https://camo.githubusercontent.com/95aeb116e0247b3412c74ad0b7689e1666d554fd9796aeed66fddbe0796d3f61/68747470733a2f2f706f7365722e707567782e6f72672f6a616c616c6c696e75782f6c61726176656c2d7468696e6773626f6172642f76)](https://packagist.org/packages/jalallinux/laravel-thingsboard)[![Latest Version on Packagist](https://camo.githubusercontent.com/a888e45ec27316d452b601f8e44359bf608a6abdc34f0ea257e0a434d6eb0157/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a616c616c6c696e75782f6c61726176656c2d7468696e6773626f6172642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jalallinux/laravel-thingsboard)[![Tests](https://github.com/jalallinux/laravel-thingsboard/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/jalallinux/laravel-thingsboard/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/8a330a2f999c665154f8e1f401129b91078422279d2d53ed043cb48d1618593a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a616c616c6c696e75782f6c61726176656c2d7468696e6773626f6172642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jalallinux/laravel-thingsboard)

---

ThingsBoard is an open-source IoT platform for data collection, processing, visualization, and device management. This project is a Laravel Package that provides convenient client SDK for Integrate with Thingsboard APIs.

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

[](#installation)

You can install the package via composer

```
composer require jalallinux/laravel-thingsboard
```

Publish config file
-------------------

[](#publish-config-file)

You can publish config file to change default configs

```
 php artisan vendor:publish --provider JalalLinuX\\Thingsboard\\LaravelThingsboardServiceProvider --tag config
```

Publish language file
---------------------

[](#publish-language-file)

You can publish config file to change default languages

```
 php artisan vendor:publish --provider JalalLinuX\\Thingsboard\\LaravelThingsboardServiceProvider --tag lang
```

Preparing for usage
-------------------

[](#preparing-for-usage)

`User` class must implement `JalalLinuX\Thingsboard\Interfaces\ThingsboardUser` like this:

```
class User extends Authenticatable implements JalalLinuX\Thingsboard\Interfaces\ThingsboardUser
{
    public function getThingsboardEmailAttribute(): string
    {
        return $this->attributes['thingsboard_email'];
    }

    public function getThingsboardPasswordAttribute(): string
    {
        return $this->attributes['thingsboard_password'];
    }

    public function getThingsboardAuthorityAttribute(): EnumAuthority
    {
        return EnumAuthority::from($this->attributes['thingsboard_authority']);
    }

    ...
```

Then can use trait `JalalLinuX\Thingsboard\Traits\ThingsboardUser` like this:

```
class User extends Authenticatable implements JalalLinuX\Thingsboard\Interfaces\ThingsboardUser
{
    use \JalalLinuX\Thingsboard\Traits\ThingsboardUser

    ...
}
```

Usage with Tntity classes
-------------------------

[](#usage-with-tntity-classes)

```
use JalalLinuX\Thingsboard\Entities\DeviceApi;

/** Without Authentication */
DeviceApi::instance()->setAttribute('deviceToken', 'A1_TEST_TOKEN')->postTelemetry([...])

/** With Authentication */
Device::instance()->withUser($tenantUser)->getDeviceById('ca3b8fc0-dcf6-11ed-a299-0f591673a2d6')
Device::instance()->withUser($tenantUser)->setAttribute('id', 'ca3b8fc0-dcf6-11ed-a299-0f591673a2d6')->getDeviceById()
Device::instance(['id' => 'ca3b8fc0-dcf6-11ed-a299-0f591673a2d6'])->withUser($tenantUser)->getDeviceById()
```

Usage with Helper function
--------------------------

[](#usage-with-helper-function)

```
/** Without Authentication */
thingsboard()->deviceApi()->setAttribute('deviceToken', 'A1_TEST_TOKEN')->postDeviceAttributes([...])

/** With Authentication */
thingsboard()->device()->withUser($tenantUser)->getDeviceById('ca3b8fc0-dcf6-11ed-a299-0f591673a2d6')
thingsboard($tenantUser)->device()->setAttribute('id', 'ca3b8fc0-dcf6-11ed-a299-0f591673a2d6')->getDeviceById()
thingsboard()->device(['id' => 'ca3b8fc0-dcf6-11ed-a299-0f591673a2d6'])->withUser($tenantUser)->getDeviceById()
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [JalalLinuX](https://github.com/jalallinux)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance52

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 Bus Factor1

Top contributor holds 70.2% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ddef4e15a6bda9c060f6e33ccfd0a268895bfb664936f9191a836de4d528d684?d=identicon)[jalallinux](/maintainers/jalallinux)

---

Top Contributors

[![jalallinux](https://avatars.githubusercontent.com/u/37062636?v=4)](https://github.com/jalallinux "jalallinux (534 commits)")[![samirsabiee](https://avatars.githubusercontent.com/u/64132282?v=4)](https://github.com/samirsabiee "samirsabiee (194 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (16 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (13 commits)")[![ehsanmqn](https://avatars.githubusercontent.com/u/10043721?v=4)](https://github.com/ehsanmqn "ehsanmqn (4 commits)")

### Embed Badge

![Health badge](/badges/jalallinux-laravel-thingsboard/health.svg)

```
[![Health](https://phpackages.com/badges/jalallinux-laravel-thingsboard/health.svg)](https://phpackages.com/packages/jalallinux-laravel-thingsboard)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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