Download the PHP package php-architecture-kit/technical without Composer
On this page you can find all versions of the php package php-architecture-kit/technical. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download php-architecture-kit/technical
More information about php-architecture-kit/technical
Files in php-architecture-kit/technical
Download php-architecture-kit/technical
More information about php-architecture-kit/technical
Files in php-architecture-kit/technical
Vendor php-architecture-kit
Package technical
Short Description Technical classes, interfaces and utilities.
License MIT
Homepage https://github.com/php-architecture-kit/technical
Package technical
Short Description Technical classes, interfaces and utilities.
License MIT
Homepage https://github.com/php-architecture-kit/technical
Please rate this library. Is it a good library?
Informations about the package technical
php-architecture-kit/technical
Technical classes, interfaces and utilities for PHP applications. A lightweight, zero-dependency utility library providing common low-level helpers.
Features
Assert- Validation utilities with customizable exception typesArrayTransformation- Array manipulation helpers- No dependencies - Only requires PHP 7.4+
- Framework-agnostic - Works with any PHP project
Installation
Quick Start
API Reference
Assert
| Method | Description |
|---|---|
eachInstanceOf(array $items, string $class, string $exceptionClass, int $displayLimit) |
Throws if any item is not an instance of $class |
eachString(array $items, string $exceptionClass, int $displayLimit) |
Throws if any item is not a string |
Both methods accept a custom $exceptionClass (must implement Throwable, defaults to InvalidArgumentException) and $displayLimit to cap how many invalid items appear in the message.
ArrayTransformation
| Method | Description |
|---|---|
indexBy(array $items, callable $key): array |
Re-keys an array using the return value of $key($item) |
License
MIT
All versions of technical with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4 || ^8.0
The package php-architecture-kit/technical contains the following files
Loading the files please wait ...