PHPackages                             peteradeojo/laas-php-sdk - 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. peteradeojo/laas-php-sdk

ActiveLibrary[API Development](/categories/api)

peteradeojo/laas-php-sdk
========================

A PHP SDK for the LAAS API

v2.2.1(3y ago)1971MITPHPPHP &gt;=7.4

Since Jun 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/peteradeojo/laas-php-sdk)[ Packagist](https://packagist.org/packages/peteradeojo/laas-php-sdk)[ RSS](/packages/peteradeojo-laas-php-sdk/feed)WikiDiscussions main Synced 2w ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

Laas
====

[](#laas)

Laas is a PHP package for sending logs to the [LAAS API](https://laas-api-nest.onrender.com/).

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

[](#installation)

You can install Laas using [Composer](https://getcomposer.org/):

```
composer require peteradeojo/laas
```

Usage
-----

[](#usage)

First, you need to create an instance of the `Laas` class:

```
$laas = Laas::getInstance();
```

Then, you can use the `sendLog` method to send a log to the LAAS API:

```
$log = new LaasLogDTO();
$log->level = 'info';
$log->message = 'This is a test message';

$response = $laas->sendLog($log);
```

The `sendLog` method returns a [Guzzle HTTP response](https://docs.guzzlephp.org/en/stable/psr7.html#responses), which you can use to check the status code and response body (or you can completely ignore it).

How to get the LAAS\_APP\_TOKEN
-------------------------------

[](#how-to-get-the-laas_app_token)

To get the app token you will need to

1. visit [Lags](https://lags.vercel.app/)
2. Create an account on the platform
3. Log in to the account you just created
4. Create an app from your dashboard and put in the name for the app e.g Hotel system
5. click on generate token
6. copy the token generated and use it in your application.

**Note:** Make sure to set the `LAAS_APP_TOKEN` environment key before using the `sendLog` method.

Contributing
------------

[](#contributing)

Contributions are welcome! If you find a bug or want to add a new feature, please open an issue or submit a pull request.

License
-------

[](#license)

Laas is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.3% 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 ~16 days

Total

4

Last Release

1114d ago

Major Versions

1.0.0 → 2.0.02023-06-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f046e85501d33cc342144811763830ee73ace77679c7b7636d99fbe0f6298eb?d=identicon)[peteradeojo](/maintainers/peteradeojo)

---

Top Contributors

[![peteradeojo](https://avatars.githubusercontent.com/u/60135915?v=4)](https://github.com/peteradeojo "peteradeojo (14 commits)")[![m4-programmer](https://avatars.githubusercontent.com/u/101928953?v=4)](https://github.com/m4-programmer "m4-programmer (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/peteradeojo-laas-php-sdk/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.3M49](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k832.6k55](/packages/neuron-core-neuron-ai)[files.com/files-php-sdk

Files.com PHP SDK

2482.9k](/packages/filescom-files-php-sdk)[volcengine/volcengine-php-sdk

119.5k](/packages/volcengine-volcengine-php-sdk)

PHPackages © 2026

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