PHPackages                             codelife/codelife-helpers - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. codelife/codelife-helpers

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

codelife/codelife-helpers
=========================

This is a activity logger helper made by Jexter Tomas

04PHP

Since Apr 6Pushed 3y ago1 watchersCompare

[ Source](https://github.com/0-codelife-0/helper)[ Packagist](https://packagist.org/packages/codelife/codelife-helpers)[ RSS](/packages/codelife-codelife-helpers/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Helper package for Laravel
==========================

[](#helper-package-for-laravel)

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

[](#installation)

You can install this plugin into your Laravel application using [composer](https://getcomposer.org).

The recommended way to install composer packages is:

```
composer require codelife/codelife-helpers
```

If above code does not work try:

```
composer require codelife/codelife-helpers:dev-main
#  OR
composer require codelife/codelife-helpers:dev-master
```

### Setting up

[](#setting-up)

Publish migrations using below command:

```
php artisan vendor:publish --provider="Codelife\CodelifeHelpers\Providers\HelperServiceProvider" --tag="migrations"
```

Then, add the code below to load this package as one of the providers Go into your config/app.php directory then paste the following in providers group

```
// ....Above providers
Codelife\CodelifeHelpers\Providers\HelperServiceProvider::class,
// ....Below Providers
```

Execute artisan command migrate using the below commands to migrate Helpers activity logger table

```
# If you wish to run all your migrations
php artisan migrate
# Running activity logger's migration only
php artisan migrate --path=/database/migrations/2023_04_03_074638_create_activity_logs_table.php
```

### Usage

[](#usage)

You can use this helper in your index view, adding, editing and deleting of model entity using below codes:
===========================================================================================================

[](#you-can-use-this-helper-in-your-index-view-adding-editing-and-deleting-of-model-entity-using-below-codes)

Usage in index function
=======================

[](#usage-in-index-function)

```
use App\Models\Todo; // This is the model of target table
use Codelife\CodelifeHelpers\Helper; // namespace of helper
...

...
public function index(){
    ...
    // First use
    // with custom second parameter
    new Helper(new Todo, 'Your custom activity message here');

    // Second use
    // with custom second parameter
    new Helper(new Todo);
    ...
}
...
```

Usage in add, edit and delete function
======================================

[](#usage-in-add-edit-and-delete-function)

```
use App\Models\Todo; // This is the model of target table
use Codelife\CodelifeHelpers\Helper; // namespace of helper
...

...
public function add(Request $request){
    $todo = Todo::create($request->all());
    ...
    // First use
    // with custom second parameter
    new Helper($todo, 'Your custom activity message here');

    // Second use
    // with custom second parameter
    new Helper($todo);
    ...

    // This will get the json encoded format of the inserted data
}
...
```

### Retrieving data

[](#retrieving-data)

```
...
return Helper::getAllActivityLogs()->getData(); // Will return a json encoded response of the data
...

...
Helper::getAllActivityLogs(); // Will return the collactin of the data
...
```

### Truncating table

[](#truncating-table)

```
Helper::setTableEmpty(); // This will return a boolean
```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/17296c710c37022658ebef1ed47ab5427517bdda9ca8cf0da06ec67e02e2a099?d=identicon)[0codingislife0](/maintainers/0codingislife0)

---

Top Contributors

[![jexszcy](https://avatars.githubusercontent.com/u/147476515?v=4)](https://github.com/jexszcy "jexszcy (11 commits)")

### Embed Badge

![Health badge](/badges/codelife-codelife-helpers/health.svg)

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

PHPackages © 2026

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