Skip to content

nomaphp/js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NomaJS

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.

About

A PHP to JavaScript transpiler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages