PHPackages                             onenet/laravel - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. onenet/laravel

ActiveLibrary[HTTP &amp; Networking](/categories/http)

onenet/laravel
==============

This package can be used to connect to onenet

0.0.7(4y ago)120MITPHPPHP &gt;=8.0

Since Mar 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/hamzaaslam-cs/laravel-onenet-sdk)[ Packagist](https://packagist.org/packages/onenet/laravel)[ RSS](/packages/onenet-laravel/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (1)Versions (8)Used By (0)

laravel-onenet-sdk
==================

[](#laravel-onenet-sdk)

> Note: The Cache in laravel will be used to determine duplicate data. Please try to configue the cache as nosql (redis,etc.)

Onenet for laravel is a laravel library for OneNet platform data reception

install
-------

[](#install)

1. Insatll the package

> Please read the OneNet development documentation before use

```
  composer require "hazmaaslam-cs/laravel-onenet-sdk:1.1.0"\
```

configure
---------

[](#configure)

1. manually register 'ServiceProvider'

```
  Onenet\Laravel\OneNetServiceProvider::class,
```

2. Create a configuratioin file:

```
  php artisan vendor:publish --provider="Onenet\Laravel\OneNetServiceProvider"
```

3. (optional) Edit config/onenet.php file or write the following in the .env file

```
  OnetNet_Token=Token
  OnetNet_EncodingAESKey=Message encryption and decryption key
  OneNet_APIKey=Key in device operation

4. Add the appearance to the 'alaises' in 'confit/app.php' (laravel 5.5+ doesn't need to be added manually)

```php
  'OneNet'=>Onenet\Laravel\Facades\OneNet::class,
```

Receive platform data from
--------------------------

[](#receive-platform-data-from)

Lraravel csrf issues
--------------------

[](#lraravel-csrf-issues)

1. Exclude api routing in CSRF middleware 2 .Turn off CSRF middleware (not recommended)

The following is an example of receiving push data from the OneNet platform:

> If your domain name app.devis , please log in to the "Third Party Open Platform" of the OneNet platform and modify the "URL (please fill in the server configuration)" as: .

routing:

```
Route::any('\onenet','OneNetController@onenet');

> Note: It must be Route::any, because when the OneNet platform is certified, it is when the GETplatform message is pushed.POST

```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Every ~0 days

Total

7

Last Release

1564d ago

### Community

Maintainers

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

---

Top Contributors

[![hamzaaslam-cs](https://avatars.githubusercontent.com/u/56721502?v=4)](https://github.com/hamzaaslam-cs "hamzaaslam-cs (13 commits)")

### Embed Badge

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

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[guzzlehttp/guzzle-services

Provides an implementation of the Guzzle Command library that uses Guzzle service descriptions to describe web services, serialize requests, and parse responses into easy to use model structures.

25711.0M191](/packages/guzzlehttp-guzzle-services)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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