PHPackages                             twidpay/utils - 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. twidpay/utils

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

twidpay/utils
=============

Utils for twidpay

3.0.0(7mo ago)08.2k↓50%MITPHPPHP ^8.2|^8.3|^8.4

Since Feb 26Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/twidpay-global/twid-utils)[ Packagist](https://packagist.org/packages/twidpay/utils)[ RSS](/packages/twidpay-utils/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (32)Used By (0)

Twid Utils v3.0.0
=================

[](#twid-utils-v300)

This PHP library provides utility classes for Twid applications. It's compatible with PHP 8.2+ and Laravel 12.

Breaking Changes in v3.0.0
--------------------------

[](#breaking-changes-in-v300)

- Removed Kafka-related functionality
- Updated to support Laravel 12
- Upgraded to twidpay/twid-logger 3.0
- Requires PHP 8.2 or higher
- Improved type safety with PHP 8.4 support

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

[](#installation)

1. **Requirements**:

    - PHP 8.2 or higher
    - Laravel 12
    - twidpay/twid-logger 3.0
2. **Installation via Composer**:

    You can install the library via Composer. Run the following command in your terminal:

    ```
    composer require twidpay/utils
    ```
3. **Usage**:

    - The library includes utilities for handling PII data:

    ```
    use Utils\PiiData\CustomerDataDTO;

    $data = [
        'id' => 1,
        'mobileNumber' => '1234567890',
        'firstname' => 'John',
        'middlename' => 'Doe',
        'lastname' => 'Smith',
        'email' => 'john.doe@example.com',
        'dob' => '1990-01-01',
        'hashedMobileNumber' => 'hash123'
    ];

    $customer = new CustomerDataDTO($data);
    ```

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance66

Regular maintenance activity

Popularity22

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~111 days

Total

20

Last Release

218d ago

Major Versions

1.0.14 → 2.0.22024-06-20

1.0.15 → 2.0.32024-07-24

2.0.8 → 3.0.02025-10-13

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/80873880?v=4)[Twidpay](/maintainers/twidpay)[@twidpay](https://github.com/twidpay)

---

Top Contributors

[![chetan-twid](https://avatars.githubusercontent.com/u/144991230?v=4)](https://github.com/chetan-twid "chetan-twid (29 commits)")[![sukrati-twid](https://avatars.githubusercontent.com/u/154963004?v=4)](https://github.com/sukrati-twid "sukrati-twid (10 commits)")[![vasujain1](https://avatars.githubusercontent.com/u/176662193?v=4)](https://github.com/vasujain1 "vasujain1 (10 commits)")[![ankit-twidpay](https://avatars.githubusercontent.com/u/135957898?v=4)](https://github.com/ankit-twidpay "ankit-twidpay (7 commits)")[![Arko-Twid](https://avatars.githubusercontent.com/u/195760316?v=4)](https://github.com/Arko-Twid "Arko-Twid (6 commits)")[![harshit-chaudhary](https://avatars.githubusercontent.com/u/91936050?v=4)](https://github.com/harshit-chaudhary "harshit-chaudhary (3 commits)")[![amit-twidpay](https://avatars.githubusercontent.com/u/158589956?v=4)](https://github.com/amit-twidpay "amit-twidpay (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/twidpay-utils/health.svg)

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

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[hyn/multi-tenant

Run multiple websites using the same laravel installation while keeping tenant specific data separated for fully independant multi-domain setups.

2.6k1.1M9](/packages/hyn-multi-tenant)[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[pocketmine/pocketmine-mp

A server software for Minecraft: Bedrock Edition written in PHP

3.5k74.6k86](/packages/pocketmine-pocketmine-mp)[firefly-iii/data-importer

Firefly III Data Import Tool.

7545.8k](/packages/firefly-iii-data-importer)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

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