Download the PHP package timefrontiers/php-data without Composer
On this page you can find all versions of the php package timefrontiers/php-data. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download timefrontiers/php-data
More information about timefrontiers/php-data
Files in timefrontiers/php-data
Package php-data
Short Description PHP Data utilities - encryption, hashing, random generation
License MIT
Homepage https://github.com/timefrontiers/php-data
Informations about the package php-data
TimeFrontiers PHP Data
PHP data utilities — encryption, password hashing, random generation, and more.
Installation
Requirements
- PHP 8.1+
- ext-openssl
Quick Start
Classes
| Class | Purpose |
|---|---|
Encryption |
AES-256-CBC encryption/decryption |
Password |
Modern password hashing (Argon2ID) |
Random |
Cryptographically secure random generation |
Signer |
HMAC-SHA256 string signing |
ByteConverter |
Size unit conversions |
String manipulation, HTTP responses, and phone utilities now live in
timefrontiers/php-core(Str,Http\Http,Phone). This package is focused strictly on data-manipulation primitives.
Encryption
Key Configuration
A key must be supplied. There is no implicit fallback path — calling
new Encryption() without a prior setKeyFile() will throw.
Static Configuration
Usage
Key File Format
Key files should contain a base64-encoded 32-byte key:
Generate one with:
Password
Modern Usage (Argon2ID)
Configuration
Random
All methods use random_bytes() / random_int() (CSPRNG).
Signer
Sign strings to detect tampering (URLs, cookies, form data).
ByteConverter
Security defaults
| Primitive | Algorithm |
|---|---|
| Random generation | random_int() / random_bytes() (CSPRNG) |
| String signing | HMAC-SHA256 |
| Password hashing | password_hash() with Argon2ID (bcrypt configurable) |
| Encryption | AES-256-CBC with random IV per message |
License
MIT License
All versions of php-data with dependencies
ext-openssl Version *
ext-json Version *