PHPackages                             njcozw/util - 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. njcozw/util

ActiveLibrary

njcozw/util
===========

Basic PHP package with utility functions like die and dump, generate password and logging to txt file

040PHP

Since Mar 22Pushed 5y ago1 watchersCompare

[ Source](https://github.com/njcozw/util)[ Packagist](https://packagist.org/packages/njcozw/util)[ RSS](/packages/njcozw-util/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

NJCOZW Utility Module
=====================

[](#njcozw-utility-module)

Basic PHP package with utility functions like die and dump, generate password and logging to txt file

### Usage

[](#usage)

1. Die Dump

    ```
    $data = [
        'test' => 'Test Data'
    ];

    Util::dd($random_data);

    // Output

    Array
    (
        [test] => Test Data
    )

    ```

    ### same as:

    [](#same-as)

    ```
    die(var_dump($random_data))

    ```
2. Random String Generator

    ```
    Util::generator($length_of_string); // e.g. 5 string chars plus current datetime

    //Output
    N5IN70322210903

    ```
3. Log

    #### **NOTE:** Create a folder where txt logs will be stored *e.g. logs in your project directory*

    [](#note-create-a-folder-where-txt-logs-will-be-stored-eg-logs-in-your-project-directory)

    ```
    Util::log($string_data, $location);  // requires string data only

    ```

### Getting Started

[](#getting-started)

```
# Installation

composer require njcozw/util:dev-master

# In your src file

```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

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://avatars.githubusercontent.com/u/80956151?v=4)[Nigel Jaure](/maintainers/njcozw)[@njcozw](https://github.com/njcozw)

---

Top Contributors

[![njcozw](https://avatars.githubusercontent.com/u/80956151?v=4)](https://github.com/njcozw "njcozw (5 commits)")

### Embed Badge

![Health badge](/badges/njcozw-util/health.svg)

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

PHPackages © 2026

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