PHPackages                             chameleon-m/phalcon-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. chameleon-m/phalcon-logger

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

chameleon-m/phalcon-logger
==========================

Phalcon logger

v0.4.0(8y ago)17MITPHPPHP &gt;=7.0

Since Sep 9Pushed 8y ago2 watchersCompare

[ Source](https://github.com/Chameleon-m/phalcon-logger)[ Packagist](https://packagist.org/packages/chameleon-m/phalcon-logger)[ RSS](/packages/chameleon-m-phalcon-logger/feed)WikiDiscussions master Synced 2mo ago

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

Logger
======

[](#logger)

[![Latest Version](https://camo.githubusercontent.com/2ba1ed773870d42d785869da71515da90d04145a8896889a4b714e9842ea747b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4368616d656c656f6e2d6d2f7068616c636f6e2d6c6f676765722e737667)](https://packagist.org/packages/Chameleon-m/phalcon-logger)[![Software License](https://camo.githubusercontent.com/850eae1099d2b05f53383473d7cd51f9bc1ab09b7d0d9e5122f1dd930efdcc6d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6173686170652f6170697374617475732e737667)](https://github.com/Chameleon-m/phalcon-logger/blob/master/LICENSE.txt)[![Total Downloads](https://camo.githubusercontent.com/7d8fb689b2f194d5e71f6c8b001d489c1b3aef01e368a334dc264796c7f025a4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f4368616d656c656f6e2d6d2f7068616c636f6e2d6c6f676765722e737667)](https://packagist.org/packages/Chameleon-m/phalcon-logger)[![Build Status](https://camo.githubusercontent.com/b30a5e0dc3fc0367850dcc4ddcfe049f7dd90d5bf7f4dbe7e29bdf07b27f025b/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f4368616d656c656f6e2d6d2f7068616c636f6e2d6c6f676765722e7376673f6272616e63683d6d6173746572)](http://travis-ci.org/Chameleon-m/phalcon-logger)

How to install
--------------

[](#how-to-install)

### Using Composer (*recommended*)

[](#using-composer-recommended)

Best way to install skeleton would be Composer, if you didn't install it

Run code in the terminal:

```
composer create-project Chameleon-m/phalcon-logger /path/to/install
```

### Using Git

[](#using-git)

First you need to clone the project, update vendors:

```
git clone https://github.com/Chameleon-m/phalcon-logger.git ./project
cd project
composer update
```

### DB

[](#db)

For PostgreSQL:

`psql -h  -d  -U  -p  -a -w -f tests/_data/dump.sql`

Or run migration (use phalcon devtools): `phalcon migration run`

Two methods are available:

POST `/api/logs`

POST `/api/logs?queue=1` - push in queue (for save need run task `php cli.php logs queue -v -t `)

The data in it is passed to json. For example:

POST `curl -X POST -d '{"entity":"Event","entityId":1000,"date":"2017-12-12 12:12:12","userId":3,"action":"create","diff":{"before":"test1","after":"test2"}}' http://phalcon-logger.dev/api/logs`

```
{
    "entity": "Event",
    "entityId": 1000,
    "date": "2017-12-12 12:12:12",
    "userId": 3,
    "action": "create",
    "diff": {
        "before": "test1",
        "after": "test2"
    }
}

```

The date is passed in the Postgresql timestamp format.

GET `/api/logs`

Possible filters for the query:

- from - paired filter from to. Indicates the date on which the filtering starts.
- to - paired filter with from. Indicates the date the filtering ends.
- entity - the name of the entity.
- entityId - array with entity id.
- action - the name of the action.
- userId - array with user id.

The response is as follows:

GET `curl -X GET http://phalcon-logger.dev/api/logs?page=3`

```
{
    "items": [
        {
            "id": 1,
            "entity": "Event",
            "entityId": 1000,
            "date": "2017-12-12 12:12:12",
            "userId": 3,
            "action": "create",
            "diff": {
                "before": "test1",
                "after": "test2"
            }
        },
        {...},
        {...},
    ],
    "first": 1,
    "before": 2,
    "current": 3,
    "last": 8,
    "next": 4,
    "total_pages": 8,
    "total_items": 72,
    "limit": 10
}

```

Attribute - Description

items - The set of records to be displayed at the current page
current - The current page
before - The previous page to the current one
next - The next page to the current one
last - The last page in the set of records
total\_pages - The number of pages
total\_items - The number of items in the source data\\

### Testing

[](#testing)

First you need to re-generate base classes for test all suites:

`vendor/bin/codecept build`

Once the database is created and base clases re-generated, run the tests on a terminal:

`vendor/bin/codecept run`

or for detailed output:

`vendor/bin/codecept run --debug`

Requirements
------------

[](#requirements)

- PHP 7.0 and up
- Phalcon **3.2.0**
- Composer

License
-------

[](#license)

This project is open-sourced software licensed under the MIT License.

See the LICENSE file for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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

Total

4

Last Release

3136d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9d3c4ffd685f45d493c4d319006a33f8bdb712558848d5abbf812fffe56029cd?d=identicon)[Chameleon-m](/maintainers/Chameleon-m)

---

Top Contributors

[![korolev-d-l](https://avatars.githubusercontent.com/u/3199615?v=4)](https://github.com/korolev-d-l "korolev-d-l (14 commits)")

---

Tags

apiloggerphalcon

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/chameleon-m-phalcon-logger/health.svg)

```
[![Health](https://phpackages.com/badges/chameleon-m-phalcon-logger/health.svg)](https://phpackages.com/packages/chameleon-m-phalcon-logger)
```

###  Alternatives

[illuminated/console-logger

Logging and Notifications for Laravel Console Commands.

8674.9k](/packages/illuminated-console-logger)

PHPackages © 2026

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