Download the PHP package kariricode/transformer without Composer

On this page you can find all versions of the php package kariricode/transformer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package transformer

KaririCode Transformer

[![PHP 8.4+](https://img.shields.io/badge/PHP-8.4%2B-777BB4?logo=php&logoColor=white)](https://www.php.net/) [![License: MIT](https://img.shields.io/badge/License-MIT-22c55e.svg)](LICENSE) [![PHPStan Level 9](https://img.shields.io/badge/PHPStan-Level%209-4F46E5)](https://phpstan.org/) [![Rules](https://img.shields.io/badge/Rules-32-22c55e)](https://kariricode.org) [![Zero Dependencies](https://img.shields.io/badge/Dependencies-0-22c55e)](composer.json) [![ARFA](https://img.shields.io/badge/ARFA-1.3-orange)](https://kariricode.org) [![KaririCode Framework](https://img.shields.io/badge/KaririCode-Framework-orange)](https://kariricode.org) **Composable, rule-based data transformation engine for PHP 8.4+ — 32 rules, zero dependencies.** [Installation](#installation) · [Quick Start](#quick-start) · [Case Conversion](#case-conversion) · [All Rules](#all-32-rules) · [Architecture](#architecture)

The Problem

Data presentation layer needs conversions that don't belong in business logic but are always awkwardly placed:

The Solution


Requirements

Requirement Version
PHP 8.4 or higher
kariricode/property-inspector ^2.0

Installation


Quick Start


Attribute-Driven DTO Transformation


Case Conversion


Data Structure Transformations


Brazilian Documents


All 32 Rules

Category Rules Aliases
String (7) CamelCase, SnakeCase, KebabCase, PascalCase, Mask, Reverse, Repeat camel_case, snake_case, kebab_case, pascal_case, mask, reverse, repeat
Data (5) JsonEncode, JsonDecode, CsvToArray, ArrayToKeyValue, Implode json_encode, json_decode, csv_to_array, array_to_key_value, implode
Numeric (4) CurrencyFormat, Percentage, Ordinal, NumberToWords currency_format, percentage, ordinal, number_to_words
Date (4) DateToTimestamp, DateToIso8601, RelativeDate, Age date_to_timestamp, date_to_iso8601, relative_date, age
Structure (5) Flatten, Unflatten, Pluck, GroupBy, RenameKeys flatten, unflatten, pluck, group_by, rename_keys
Brazilian (4) CpfToDigits, CnpjToDigits, CepToDigits, PhoneFormat cpf_to_digits, cnpj_to_digits, cep_to_digits, phone_format
Encoding (3) Base64Encode, Base64Decode, Hash base64_encode, base64_decode, hash

Engine API (Programmatic)


Ecosystem Position

The Transformer converts representation — may change type, format, or structure. Contrast with the Sanitizer which cleans data while preserving semantic form.


Architecture

Source layout

Key design decisions

Decision Rationale ADR
Semantic distinction from Sanitizer Transformer may change type; Sanitizer preserves semantic form ADR-001
Transformation tracking Audit trail with before/after per rule ADR-002
final readonly rules Immutability, PHPStan L9 ADR-003

Specifications

Spec Covers
SPEC-001 Rule contract and context passing
SPEC-002 Transformation record format

Project Stats

Metric Value
PHP source files 49
Source lines 1,433
Test files 15
Test lines 837
External runtime dependencies 1 (kariricode/property-inspector)
Rule classes 32
Rule categories 7
PHPStan level 9
PHP version 8.4+
ARFA compliance 1.3

Contributing


License

Walmir Silva


Part of the **[KaririCode Framework](https://kariricode.org)** ecosystem. [kariricode.org](https://kariricode.org) · [GitHub](https://github.com/KaririCode-Framework/kariricode-transformer) · [Packagist](https://packagist.org/packages/kariricode/transformer) · [Issues](https://github.com/KaririCode-Framework/kariricode-transformer/issues)

All versions of transformer with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
kariricode/property-inspector Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kariricode/transformer contains the following files

Loading the files please wait ...