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. [Utility &amp; Helpers](/categories/utility)
4. /
5. rubtsovav/php-nodejs-wrapper

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

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

NodeJS process wrapper.

1.2.1(8y ago)41681MITPHPPHP &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 2w 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 57% 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

3218d 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

[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k251.2M24.7k](/packages/friendsofphp-php-cs-fixer)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[spatie/typescript-transformer

This is my package typescript-transformer

3957.8M24](/packages/spatie-typescript-transformer)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k40](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k13](/packages/tempest-framework)

PHPackages © 2026

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