twidpay / utils
Utils for twidpay
Installs: 7 808
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/twidpay/utils
Requires
- php: ^8.2|^8.3|^8.4
- laravel/framework: ^12.0
- ramsey/uuid: ^4.2.2
- twidpay/twid-logger: ^3.0
Requires (Dev)
- php-mock/php-mock: ^2.2
- phpunit/phpunit: ^9.0
- dev-master
- 3.0.0
- 2.0.8
- 2.0.6
- 2.0.4
- 2.0.3
- 2.0.2
- 1.0.15
- 1.0.14
- 1.0.13
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- dev-restore/new-version-php84-restoring-to-2-0-3-of-package
- dev-revert-21-empty-field-fix
- dev-empty-field-fix
- dev-chunk-Customer
- dev-update-pii-lib
- dev-pii-lib-v2
- dev-version-upgrade
- dev-static
- dev-pii-data-interface
- dev-log
- dev-kafka-producer
This package is auto-updated.
Last update: 2025-12-13 14:40:28 UTC
README
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
- 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
-
Requirements:
- PHP 8.2 or higher
- Laravel 12
- twidpay/twid-logger 3.0
-
Installation via Composer:
You can install the library via Composer. Run the following command in your terminal:
composer require twidpay/utils
-
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);