PHPackages                             chrysalix/chrysalix - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. chrysalix/chrysalix

ActiveLibrary[Testing &amp; Quality](/categories/testing)

chrysalix/chrysalix
===================

An open-source, lightweight PHP library for metamorphic code transformations.

v0.1.0(1y ago)14MITPHPPHP &gt;=8.1

Since Mar 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/doguabaris/Chrysalix)[ Packagist](https://packagist.org/packages/chrysalix/chrysalix)[ RSS](/packages/chrysalix-chrysalix/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (8)Versions (2)Used By (0)

Chrysalix
=========

[](#chrysalix)

An open-source PHP library that performs metamorphic code transformations. It creates functionally equivalent variants of your PHP code by applying a series of customizable transformation rules. This makes it an excellent tool for testing, code obfuscation, and exploring alternative coding styles.

[![Latest Stable Version](https://camo.githubusercontent.com/c6b5fa30b6199937808b38800af2d190f0199cd182749933bf47639d35af1ebd/68747470733a2f2f706f7365722e707567782e6f72672f6368727973616c69782f6368727973616c69782f763f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/chrysalix/chrysalix)[![Latest Unstable Version](https://camo.githubusercontent.com/5eba152a6b81c1f2a33f1b6278c57340a7e4d59636056bf212918b3102c0be26/68747470733a2f2f706f7365722e707567782e6f72672f6368727973616c69782f6368727973616c69782f762f756e737461626c653f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/chrysalix/chrysalix)[![License](https://camo.githubusercontent.com/fe6f546abf5f9c8b1760cbf016e00f52adc736856f02f2d63eed96a929c50dae/68747470733a2f2f706f7365722e707567782e6f72672f6368727973616c69782f6368727973616c69782f6c6963656e73653f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/chrysalix/chrysalix)[![PHP Version Require](https://camo.githubusercontent.com/b6f9001f1265141d79d924fcacd9bc5ed3c045228c7098ecea9c255054b2678f/68747470733a2f2f706f7365722e707567782e6f72672f6368727973616c69782f6368727973616c69782f726571756972652f7068703f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/chrysalix/chrysalix)

Features
--------

[](#features)

- **Experiment with different code structures** without changing the underlying behavior.
- **Improve your testing processes** by generating multiple representations of the same logic.
- **Obfuscate your code** to protect your intellectual property and deter reverse engineering.

Chrysalix is designed to be **modular** and **extensible**, so you can easily combine the built-in transformations or create your own custom rules.

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

[](#installation)

Install the library using Composer:

```
composer require chrysalix/chrysalix
```

Usage
-----

[](#usage)

Below is an example of how to use Chrysalix in your project:

```
