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(2y ago)0971MITPHPPHP &gt;=7.4

Since Jun 12Pushed 2y 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 1mo 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

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

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

1013d 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

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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