PHPackages                             taufiqrahman/yii2-apirestlog - 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. taufiqrahman/yii2-apirestlog

ActiveYii2-extension[Logging &amp; Monitoring](/categories/logging)

taufiqrahman/yii2-apirestlog
============================

Description

1.1.0(7y ago)02.8kMITPHP

Since Jul 31Pushed 7y ago1 watchersCompare

[ Source](https://github.com/taufiqrahman/yii2-apirestlog)[ Packagist](https://packagist.org/packages/taufiqrahman/yii2-apirestlog)[ RSS](/packages/taufiqrahman-yii2-apirestlog/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Api Restful Log
===============

[](#api-restful-log)

Automatic create log for request, response, controller dan action

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist taufiqrahman/yii2-apirestlog "*"

```

or add

```
"taufiqrahman/yii2-apirestlog": "*"

```

to the require section of your `composer.json` file.

Database Migration
------------------

[](#database-migration)

Check your database settings and run migration from your console:

```
php yii migrate --migrationPath=@vendor/taufiqrahman/yii2-apirestlog/migrations
```

For more informations see [Database Migration Documentation](http://www.yiiframework.com/doc-2.0/guide-console-migrate.html#applying-migrations)

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
use Rahmansoft\Apirestlog\restlog;

class SomeController extends Controller
{

    public function behaviors()
    {
        $behaviors = parent::behaviors();
        $behaviors['restlog']=
            [
                'class' => restlog::class,
                'LOG_ON_ERROR'=> true // get all error response, false value to disable error message in your log DB
            ];

        return $behaviors;
    }
```

To access the module, you need to add this to your application configuration:

```
......
'modules' => [
    'rahman'=>[
                'class'=>'rahmansoft\apirestlog\Module',
            ],
],
......

```

Add the new menu item to your navbar:

```
......
['label' => 'Log', 'url' => ['/rahman/wslog']],
......

```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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

Unknown

Total

1

Last Release

2843d ago

### Community

Maintainers

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

---

Top Contributors

[![taufiqrahman](https://avatars.githubusercontent.com/u/10484821?v=4)](https://github.com/taufiqrahman "taufiqrahman (7 commits)")

---

Tags

yii2extension

### Embed Badge

![Health badge](/badges/taufiqrahman-yii2-apirestlog/health.svg)

```
[![Health](https://phpackages.com/badges/taufiqrahman-yii2-apirestlog/health.svg)](https://phpackages.com/packages/taufiqrahman-yii2-apirestlog)
```

###  Alternatives

[mito/yii2-sentry

Yii 2 extension for Sentry

92377.7k](/packages/mito-yii2-sentry)[sammaye/yii2-audittrail

A port of audit trail

39408.2k](/packages/sammaye-yii2-audittrail)[lav45/yii2-activity-logger

Tools to store user activity log for Yii2

3456.3k](/packages/lav45-yii2-activity-logger)[kriss/yii2-log-reader

Yii2 log reader

1340.1k1](/packages/kriss-yii2-log-reader)[apollo11/yii2-logger

Log application errors in slack channel

1011.4k1](/packages/apollo11-yii2-logger)

PHPackages © 2026

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