Skip to content

typhoon-php/exporter

Repository files navigation

Typhoon Exporter

Latest Stable Version Total Downloads psalm-level type-coverage Code Coverage Mutation testing badge

Installation

composer require typhoon/exporter

Usage

use Typhoon\Exporter\Exporter;

$exported = Exporter::export($value);

file_put_contents('code.php', '<?php return '.$exported.';');

\assert(require_once 'code.php' == $value);