PHPackages                             rubtsovav/php-nodejs-wrapper - 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. rubtsovav/php-nodejs-wrapper

ActiveLibrary

rubtsovav/php-nodejs-wrapper
============================

NodeJS process wrapper.

1.2.1(8y ago)51681MITPHPPHP &gt;=5.6.0

Since May 29Pushed 8y ago2 watchersCompare

[ Source](https://github.com/RubtsovAV/php-nodejs-wrapper)[ Packagist](https://packagist.org/packages/rubtsovav/php-nodejs-wrapper)[ RSS](/packages/rubtsovav-php-nodejs-wrapper/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (3)Versions (4)Used By (1)

php-nodejs-wrapper
==================

[](#php-nodejs-wrapper)

Php library allows you to execute JavaScript code using the node js.

\##Example

```
use Kurbits\JavaScript\NodeRunner;

$nodejs = new NodeRunner();

// you can set js source code by one string
$nodejs->setSource('y = function(x){return x*x;}');

// and call js functions like this
echo $nodejs->call('y', 3);     // print 9

// or like this
echo $nodejs->execute('y(3)');  // print 9

// Also you can set many sources as array
// old sources will be deleted
$nodejs->setSources([
    'y = function(x) { return x*x; }',
    'z = function(x, y) { return x + y; }',
]);
echo $nodejs->execute('z(3, y(3))');  // print 12

// Example with the grab of output
$nodejs->addSource('document = {
    write: function(string) {
        process.stdout.write(string);
    }
};');
$nodejs->addSource('document.write(z(3, y(3)))');
echo $nodejs->execute();  // print 12

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 70% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~233 days

Total

3

Last Release

3172d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/43c3630c1a1fb1bb65e6246442c7d08ee2290392391571b2d00c7a47eb4e8021?d=identicon)[RubtsovAV](/maintainers/RubtsovAV)

---

Top Contributors

[![TechAlchemistry](https://avatars.githubusercontent.com/u/4455837?v=4)](https://github.com/TechAlchemistry "TechAlchemistry (7 commits)")[![ckhampus](https://avatars.githubusercontent.com/u/173021?v=4)](https://github.com/ckhampus "ckhampus (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rubtsovav-php-nodejs-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/rubtsovav-php-nodejs-wrapper/health.svg)](https://phpackages.com/packages/rubtsovav-php-nodejs-wrapper)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[illuminate/process

The Illuminate Process package.

44699.5k65](/packages/illuminate-process)[statamic/cli

Statamic CLI Tool

7587.7k](/packages/statamic-cli)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
