noma / js
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/noma/js
Requires
- php: ^8.4
- nikic/php-parser: ^5.4
Requires (Dev)
- phpunit/phpunit: ^12
- symfony/var-dumper: ^7.2
This package is auto-updated.
Last update: 2025-09-17 09:54:56 UTC
README
A PHP to JS transpiler.
Installation
composer require noma/js
Usage
There's lots to write, but the most basic usage looks like this:
use Noma\Js\Js; $js = Js::fromString('<?php echo "Hello, World";'); // $js becomes => console.log("Hello, World");
You can also use Js::fromFile
. For more info please refer to the examples for now.