PHPackages                             doclassif/elastic - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. doclassif/elastic

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

doclassif/elastic
=================

Laravel Elastic custom formatter

2.2.0(9mo ago)01971MITPHP

Since Apr 21Pushed 9mo ago1 watchersCompare

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

READMEChangelog (2)Dependencies (4)Versions (15)Used By (0)

Elastic custom formatter
========================

[](#elastic-custom-formatter)

[![Latest Stable Version](https://camo.githubusercontent.com/b2ec4158d3c58ceabdab13ffcc3ca46b2f8d648d989fbb7472b8b3ccbe5d004a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646f636c61737369662f656c6173746963)](https://packagist.org/packages/doclassif/elastic)

Запуск в dev container VScode
-----------------------------

[](#запуск-в-dev-container-vscode)

1. Open project
2. F1 -&gt; Dev Containers: Rebuild and Reopen in Container

Запуск тестов (которые будут в обозримом будущем)
-------------------------------------------------

[](#запуск-тестов-которые-будут-в-обозримом-будущем)

```
composer test
```

3. Добавить конфигурацию в `config/logging.php` (актуальная конфигурация в документации пакета)

```
     'channels' => [
        'stack' => [
            'driver' => 'stack',
            'channels' => ['stdout', 'daily', 'elasticsearch'],
            'ignore_exceptions' => false,
        ],

         'elasticsearch' => [
            'driver'         => 'monolog',
            'level'          => 'debug',
            'handler'        => Kali\Elastic\ElasticsearchHandler::class,
            'formatter'      => Kali\Elastic\ElasticsearchFormatter::class,
            'formatter_with' => [
                'index' => env('ELASTIC_LOGS_INDEX'),
                'type'  => '_doc',
            ],
            'handler_with'   => [
                'hosts' => [env('ELASTIC_HOST', "http://elasticsearch:9200/")],
                'options' => [
                    'ignore_error' => env('ELASTIC_IGNORE_ERROR', true),
                ]
            ],
        ],
    ],
```

.env переменные

```
ELASTIC_HOST=elasticsearch:9200
ELASTIC_LOGS_INDEX=test_logs

```

4. Выполнить `php artisan vendor:publish` и выбрать `Elastic\Providers\ElasticServiceProvider`

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance56

Moderate activity, may be stable

Popularity12

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

Recently: every ~131 days

Total

12

Last Release

292d ago

Major Versions

1.0.6 → 2.0.72023-04-21

1.0.7 → 2.0.82023-05-11

1.0.8 → 2.0.92023-05-11

1.1.0 → 2.1.12024-05-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/04e1c7aa6d572212e950f760dd2817e3689aed9e6a74b7d7b42d09470e5bc0de?d=identicon)[Doclassif](/maintainers/Doclassif)

---

Top Contributors

[![Doclassif](https://avatars.githubusercontent.com/u/25744932?v=4)](https://github.com/Doclassif "Doclassif (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/doclassif-elastic/health.svg)

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

###  Alternatives

[google/cloud-core

Google Cloud PHP shared dependency, providing functionality useful to all components.

343121.4M79](/packages/google-cloud-core)

PHPackages © 2026

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