PHPackages                             dennykuo/data-to-js - 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. dennykuo/data-to-js

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

dennykuo/data-to-js
===================

Transform PHP data to JavaScript

v0.0.2(6y ago)025MITPHP

Since Apr 27Pushed 6y ago1 watchersCompare

[ Source](https://github.com/dennykuo/data-to-js)[ Packagist](https://packagist.org/packages/dennykuo/data-to-js)[ RSS](/packages/dennykuo-data-to-js/feed)WikiDiscussions master Synced today

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Install

```
composer require dennykuo/data-to-js

```

PHP

```
require __DIR__ . '/vendor/autoload.php';

use DataToJs\DataToJs;

...

$js = (new DataToJs)->put(['foo' => 'bar']);

(or)

$data = new stdClass();
$data->first = 'Peng';
$data->last  = 'Jie';

$js = (new DataToJs)->put(['foo' => 'bar', 'name' => $data]);

```

HTML

```

```

Options

```
$js = (new DataToJs($namespace = 'app'))->put(['foo' => 'bar']);

// console.log(app.foo) => 'bar'

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

3

Last Release

2206d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f77f472bff0ece44b47ffe895ddc24f2ee34761686d0d2b3bff0688a0a4c1301?d=identicon)[dennykuo](/maintainers/dennykuo)

---

Top Contributors

[![dennykuo](https://avatars.githubusercontent.com/u/2378195?v=4)](https://github.com/dennykuo "dennykuo (6 commits)")

### Embed Badge

![Health badge](/badges/dennykuo-data-to-js/health.svg)

```
[![Health](https://phpackages.com/badges/dennykuo-data-to-js/health.svg)](https://phpackages.com/packages/dennykuo-data-to-js)
```

###  Alternatives

[bitwasp/buffertools

Toolbox for working with binary and hex data. Similar to NodeJS Buffer.

65764.4k41](/packages/bitwasp-buffertools)[reefki/laravel-device-detector

Laravel wrapper for Matomo's Universal Device Detection library.

2852.6k](/packages/reefki-laravel-device-detector)

PHPackages © 2026

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