PHPackages                             t3rry/lbase - 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. t3rry/lbase

ActiveLibrary

t3rry/lbase
===========

Base support, such as logging / http head processing for other libs

1.0(6y ago)0183MITPHPCI failing

Since Feb 22Pushed 6y ago1 watchersCompare

[ Source](https://github.com/t3rryw1/lbase)[ Packagist](https://packagist.org/packages/t3rry/lbase)[ RSS](/packages/t3rry-lbase/feed)WikiDiscussions master Synced today

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

### Instructions

[](#instructions)

Default log folder is /var/log/ Default logging file name is application.log. Default log level is logging all. you may override these behavior by setting global variable / constant

- default\_log / DEFAULT\_LOG
- log\_level / LOG\_LEVEL
- log\_folder / LOG\_FOLDER

when you need to log into a different log file, make sure you define the corresponding constant / variable.

- %log\_name%\_log / %LOG\_NAME%\_LOG
- LOG\_TYPE\_%LOG\_NAME%

definition of LOG\_TYPE\_%LOG\_NAME% should start on 4, and avoid duplicate values.

example: to log to /var/log/database.log, we should define

```
    define('DATABASE_LOG','database.log')
    define('LOG_TYPE_DATABASE',"LOG_TYPE_DATABASE")
```

to override database log location , define in global scope:

```
 $database_log = '/var/log/laura/database.log';
```

we also have the following log type predefined:

- database
- cron
- access

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

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

2269d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/551fc4d2b17d83c2b28287e15294075ff77c0f7a117f769680fc263489d4ca12?d=identicon)[zhichangterry](/maintainers/zhichangterry)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/t3rry-lbase/health.svg)

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

PHPackages © 2026

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