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 2d ago

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

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

[php-unoconv/php-unoconv

Unoconv PHP, an Object Oriented library for easy file conversion with LibreOffice's unoconv

77345.9k2](/packages/php-unoconv-php-unoconv)[laminas/laminas-migration

Migrate a Zend Framework project or third-party library to target Laminas/Expressive/Apigility

6056.1k6](/packages/laminas-laminas-migration)[firegento/extendedimport

Extended Import Features (ported from AvS\_FastSimpleImport)

6344.1k1](/packages/firegento-extendedimport)[ezsystems/symfony-tools

eZ Systems Symfony Tools

19306.9k2](/packages/ezsystems-symfony-tools)[venveo/craft-bulkedit

Bulk edit Craft CMS element fields

24125.6k](/packages/venveo-craft-bulkedit)[ada-u/chocoflake

64bit time based id generator

14117.3k](/packages/ada-u-chocoflake)

PHPackages © 2026

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