PHPackages                             actiophp/actio - 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. actiophp/actio

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

actiophp/actio
==============

Logging and reporting of activities and events

v0.2.3(1y ago)01.5k↓50%MITPHPPHP ^8.3CI passing

Since Nov 21Pushed 1y ago1 watchersCompare

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

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

ActioPHP
========

[](#actiophp)

[![Tests](https://github.com/zestic/actio/actions/workflows/tests.yml/badge.svg)](https://github.com/zestic/actio/actions/workflows/tests.yml)[![codecov](https://camo.githubusercontent.com/b11570fb4e7b68073fdd0814ecda56bca3e8a49a1e46308a18633f47bad57212/68747470733a2f2f636f6465636f762e696f2f67682f7a65737469632f616374696f2f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/zestic/actio)[![PHPStan](https://camo.githubusercontent.com/f60d96f7c2579690ab6dfa8918f777fe93a02a92301c661eb38a85861a92b780/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230382d627269676874677265656e2e7376673f7374796c653d666c6174)](https://phpstan.org/)

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

[](#installation)

Install the latest version:

```
composer require actiophp/actio
```

Usage
-----

[](#usage)

Actio::setHandler($handler);

Tests
-----

[](#tests)

### Running Tests

[](#running-tests)

Run all tests with coverage:

```
composer test
```

Or run specific test suites:

```
composer test:unit      # Unit tests only
composer test:integration # Integration tests only
```

### Integration Tests

[](#integration-tests)

Integration tests require local MySQL and PostgreSQL instances.

#### MySQL Setup

[](#mysql-setup)

Configure your MySQL test database:

```
CREATE USER 'test'@'localhost' IDENTIFIED BY 'password1';
CREATE DATABASE actio_test;
GRANT ALL PRIVILEGES ON actio_test.* TO 'test'@'localhost';
FLUSH PRIVILEGES;
```

MySQL environment variables in `.env.testing`:

- ACTIO\_MYSQL\_HOST (default: localhost)
- ACTIO\_MYSQL\_DB\_NAME (default: actio\_test)
- ACTIO\_MYSQL\_USERNAME (default: test)
- ACTIO\_MYSQL\_PASSWORD (default: password1)

#### PostgreSQL Setup

[](#postgresql-setup)

Configure your PostgreSQL test database:

```
# Create test user and database
sudo -u postgres psql -c "CREATE USER test WITH PASSWORD 'password1';"
sudo -u postgres psql -c "CREATE DATABASE test WITH OWNER test;"

# Create schema for Actio tests
sudo -u postgres psql -d test -c "CREATE SCHEMA actio_test AUTHORIZATION test;"
sudo -u postgres psql -d test -c "GRANT ALL ON SCHEMA actio_test TO test;"
```

PostgreSQL environment variables in `.env.testing`:

- ACTIO\_PG\_HOST (default: localhost)
- ACTIO\_PG\_DB\_NAME (default: test)
- ACTIO\_PG\_SCHEMA (default: actio\_test)
- ACTIO\_PG\_USERNAME (default: test)
- ACTIO\_PG\_PASSWORD (default: password1)

### Static Analysis

[](#static-analysis)

Run PHPStan (level 8):

```
composer phpstan
```

### Credits

[](#credits)

Code and ideas borrowed from

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance47

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community7

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

Recently: every ~129 days

Total

6

Last Release

391d ago

PHP version history (2 changes)v0.1.0PHP ^8.1

v0.2.1PHP ^8.3

### Community

Maintainers

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

---

Top Contributors

[![iampersistent](https://avatars.githubusercontent.com/u/16964?v=4)](https://github.com/iampersistent "iampersistent (29 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/actiophp-actio/health.svg)

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

###  Alternatives

[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k227.1M273](/packages/sentry-sentry)[rollbar/rollbar

Monitors errors and exceptions and reports them to Rollbar

33723.7M82](/packages/rollbar-rollbar)[illuminate/log

The Illuminate Log package.

6224.3M518](/packages/illuminate-log)[open-telemetry/api

API for OpenTelemetry PHP.

1933.0M214](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2322.9M248](/packages/open-telemetry-sdk)[pagemachine/typo3-formlog

Form log for TYPO3

23225.3k6](/packages/pagemachine-typo3-formlog)

PHPackages © 2026

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