PHPackages                             officegest/api-logger - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. officegest/api-logger

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

officegest/api-logger
=====================

Monitoring and log your APIs

1.3.1(11mo ago)0237MITPHPPHP ^8.1CI failing

Since Nov 7Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/Officegest/api-logger)[ Packagist](https://packagist.org/packages/officegest/api-logger)[ Docs](https://officegest.com/)[ RSS](/packages/officegest-api-logger/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (6)Versions (8)Used By (0)

Officegest Api Logger
---------------------

[](#officegest-api-logger)

This is a laravel package to save logs from api.

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

[](#installation)

```
composer require officegest/api-logger

```

Publish the config file for this package. This will add the file `config/officegest-api-logger-config.php`, where you can configure this package.

```
$ php artisan vendor:publish --tag=officegest-api-logger-config

```

You need add this variables to your .env

```
API_LOGGER_ELASTIC_HOST="your_elastic_url:port"
API_LOGGER_ELASTIC_LOGS_INDEX="your_index_name"

## Optional
#API_LOGGER_ELASTIC_USERNAME="your_user"
#API_LOGGER_ELASTIC_PASSWORD="your_password"

```

Usage
-----

[](#usage)

Add middleware alias to $middlewareAliases

```
//app/Http/Kernel.php (l10)
'logger' => \OfficegestApiLogger\Middlewares\OfficegestApiLoggerMiddleware::class,

```

Add middleware at routes you want log to elasticsearch

```
/*
|--------------------------------------------------------------------------
| Example add middleware to group of endpoints
|--------------------------------------------------------------------------
*/
Route::middleware('logger')->controller(YourController::class)
    ->name('yourname.')
    ->prefix('yourprefix')
    ->group(function () {
        ...
    });

```

Security
--------

[](#security)

If you discover any security related issues, please email  or use issues of this repo.

Credits
-------

[](#credits)

- [Officegest.com](https://officegest.com)
- [Guisoft.net](https://guisoft.net)
- [All Contributors](../../contributors)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance50

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

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 ~33 days

Recently: every ~47 days

Total

7

Last Release

355d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/92090601?v=4)[Officegest](/maintainers/officegest)[@Officegest](https://github.com/Officegest)

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

---

Top Contributors

[![stephanesoares](https://avatars.githubusercontent.com/u/4375100?v=4)](https://github.com/stephanesoares "stephanesoares (6 commits)")

---

Tags

apilaravelmonitoringdebugingofficegestguisoft

###  Code Quality

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/officegest-api-logger/health.svg)

```
[![Health](https://phpackages.com/badges/officegest-api-logger/health.svg)](https://phpackages.com/packages/officegest-api-logger)
```

###  Alternatives

[treblle/treblle-laravel

Stay in tune with your APIs

135204.9k](/packages/treblle-treblle-laravel)[treblle/security-headers

A collection of HTTP middleware classes to improve the security headers in your Laravel application.

9534.3k](/packages/treblle-security-headers)[treblle/treblle-api-tools-laravel

A set of useful tools for building APIs in Laravel.

135.3k1](/packages/treblle-treblle-api-tools-laravel)[moesif/moesif-laravel

Moesif Collection/Data Ingestion Middleware for Laravel

1065.8k](/packages/moesif-moesif-laravel)

PHPackages © 2026

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