PHPackages                             recca0120/eloquent-logrotate - 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. [Database &amp; ORM](/categories/database)
4. /
5. recca0120/eloquent-logrotate

ActiveLibrary[Database &amp; ORM](/categories/database)

recca0120/eloquent-logrotate
============================

laravel eloquent auto create table by daily or weekly or monthly or yearly

v1.0.4(8y ago)48MITPHPPHP &gt;=5.5.9

Since Jan 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/recca0120/eloquent-logrotate)[ Packagist](https://packagist.org/packages/recca0120/eloquent-logrotate)[ RSS](/packages/recca0120-eloquent-logrotate/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)Dependencies (4)Versions (6)Used By (0)

Eloquent Logrotate
==================

[](#eloquent-logrotate)

[![StyleCI](https://camo.githubusercontent.com/6f855efd161464d938156467b919c4b79f901bf535dedb6762638a70089eb9d2/68747470733a2f2f7374796c6563692e696f2f7265706f732f34303636313530332f736869656c643f7374796c653d666c6174)](https://styleci.io/repos/40661503)[![Build Status](https://camo.githubusercontent.com/27bfa9ce7a2d0a727e67885b0536bba8ca16c6740064e91f60cbae4605e76682/68747470733a2f2f7472617669732d63692e6f72672f7265636361303132302f656c6f7175656e742d6c6f67726f746174652e737667)](https://travis-ci.org/recca0120/eloquent-logrotate)[![Total Downloads](https://camo.githubusercontent.com/d5481d0c7a9d7566a0644d15b25a96da216a9d9b9b9df2b98af01d4d9ca8814d/68747470733a2f2f706f7365722e707567782e6f72672f7265636361303132302f656c6f7175656e742d6c6f67726f746174652f642f746f74616c2e737667)](https://packagist.org/packages/recca0120/eloquent-logrotate)[![Latest Stable Version](https://camo.githubusercontent.com/a07082b86fc965d9f8cacd7bc91093da2756c7d43cd7035a81b2d64727cc2dca/68747470733a2f2f706f7365722e707567782e6f72672f7265636361303132302f656c6f7175656e742d6c6f67726f746174652f762f737461626c652e737667)](https://packagist.org/packages/recca0120/eloquent-logrotate)[![Latest Unstable Version](https://camo.githubusercontent.com/b11a0925819dae51002ec9032e39b6e5cb6c5f4a58e64fc459defdae4e17e2b6/68747470733a2f2f706f7365722e707567782e6f72672f7265636361303132302f656c6f7175656e742d6c6f67726f746174652f762f756e737461626c652e737667)](https://packagist.org/packages/recca0120/eloquent-logrotate)[![License](https://camo.githubusercontent.com/4460fd670508c2261a4e953e71b807378d55efc671c3bd0da13973429bd25b95/68747470733a2f2f706f7365722e707567782e6f72672f7265636361303132302f656c6f7175656e742d6c6f67726f746174652f6c6963656e73652e737667)](https://packagist.org/packages/recca0120/eloquent-logrotate)[![Monthly Downloads](https://camo.githubusercontent.com/9bcf8c19518102adacccdf30617d36bb91b986224118f15bf4b05e56af09dcb0/68747470733a2f2f706f7365722e707567782e6f72672f7265636361303132302f656c6f7175656e742d6c6f67726f746174652f642f6d6f6e74686c79)](https://packagist.org/packages/recca0120/eloquent-logrotate)[![Daily Downloads](https://camo.githubusercontent.com/c0ab95d2ca2048d92b71819960f5e042f54fc77e94796a114915f0817b54ff7a/68747470733a2f2f706f7365722e707567782e6f72672f7265636361303132302f656c6f7175656e742d6c6f67726f746174652f642f6461696c79)](https://packagist.org/packages/recca0120/eloquent-logrotate)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/ffe817d0bbf9c296945ef23eae945f12007dee556e0dc1a4ef40f19a89ef7070/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7265636361303132302f656c6f7175656e742d6c6f67726f746174652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/recca0120/eloquent-logrotate/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/572c648844e51ed8cb1571d72f88fef8bb58938148625e4a10faaf668e7f3b76/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7265636361303132302f656c6f7175656e742d6c6f67726f746174652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/recca0120/eloquent-logrotate/?branch=master)

INSTALL
-------

[](#install)

```
composer require recca0120/eloquent-logrotate
```

HOW TO USE
----------

[](#how-to-use)

### define model

[](#define-model)

```
namespace App;

use Illuminate\Database\Eloquent\Model;
use Recca0120\EloquentLogrotate\Logrotate;

class MonthlyLog extends Model
{
    use Logrotate;

    /**
     * $logrotateType: hourly, daily, weekly, monthly, yearly
     */
    protected $logrotateType = 'monthly';

    protected function logrotateTableSchema($table)
    {
        $table->increments('id');
        $table->string('name');
        $table->string('email')->unique();
        $table->string('password');
        $table->timestamps();
    }
}
```

it will create database by monthly

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

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

Every ~6 days

Total

5

Last Release

3014d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1390554?v=4)[Recca Tsai](/maintainers/recca0120)[@recca0120](https://github.com/recca0120)

---

Top Contributors

[![recca0120](https://avatars.githubusercontent.com/u/1390554?v=4)](https://github.com/recca0120 "recca0120 (17 commits)")

---

Tags

dailyeloquentlaravellogrotatemodelmonthlyyearlyloglaravelmodeleloquentrotatelogrotatedailymonthlyweeklyyearlyhourly

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/recca0120-eloquent-logrotate/health.svg)

```
[![Health](https://phpackages.com/badges/recca0120-eloquent-logrotate/health.svg)](https://phpackages.com/packages/recca0120-eloquent-logrotate)
```

###  Alternatives

[owen-it/laravel-auditing

Audit changes of your Eloquent models in Laravel

3.4k33.0M95](/packages/owen-it-laravel-auditing)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k7.2M71](/packages/mongodb-laravel-mongodb)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[dyrynda/laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models.

4802.8M8](/packages/dyrynda-laravel-model-uuid)[spiritix/lada-cache

A Redis based, automated and scalable database caching layer for Laravel

591444.8k2](/packages/spiritix-lada-cache)[pdphilip/elasticsearch

An Elasticsearch implementation of Laravel's Eloquent ORM

145360.2k4](/packages/pdphilip-elasticsearch)

PHPackages © 2026

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