PHP Package: spatie/typescript-transformer

A powerful PHP library for transforming TypeScript code seamlessly to JavaScript with ease and efficiency.

Current Version: 2.4.0
Last Updated: 2024-10-04
PHP Requirement: ^8.0
Dependencies:
spatie/php
typescript/typescript
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Elevate your development process with spatie/typescript-transformer, a dynamic tool designed to convert TypeScript to JavaScript effortlessly. Enjoy enhanced productivity and streamlined workflows through its robust features and seamless integration capabilities. Seamlessly bridge the gap between TypeScript and JavaScript with this versatile library.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 2.5.0

Clock Coming soon

Previous Versions

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/spatie/typescript-transformer/2.5.0/loader.php';
require_once 'libs/spatie/php/{lib_version}/loader.php';
require_once 'libs/typescript/typescript/{lib_version}/loader.php';

use Spatie\TypescriptTransformer\Transformer;
use TypeScript\Compiler;
use Spatie\PHP\Parser;

$obj = new Transformer();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.