PHPackages                             10quality/php-class-to-javascript - 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. 10quality/php-class-to-javascript

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

10quality/php-class-to-javascript
=================================

PHP trait that casts (transforms, converts) classes into javascript objects (string version).

v1.0.0(9y ago)028MITPHP &gt;=5.4

Since Feb 23Compare

[ Source](https://github.com/10quality/php-class-to-javascript)[ Packagist](https://packagist.org/packages/10quality/php-class-to-javascript)[ RSS](/packages/10quality-php-class-to-javascript/feed)WikiDiscussions Synced 2mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/10quality/php-class-to-javascript).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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 ~4 days

Total

2

Last Release

3362d ago

### Community

Maintainers

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

---

Tags

phpjavascripttraitcast

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/10quality-php-class-to-javascript/health.svg)

```
[![Health](https://phpackages.com/badges/10quality-php-class-to-javascript/health.svg)](https://phpackages.com/packages/10quality-php-class-to-javascript)
```

###  Alternatives

[kkszymanowski/traitor

Add a trait use statement to existing PHP class

1305.2M16](/packages/kkszymanowski-traitor)[hisune/echarts-php

A php wrapper for echarts javascript libraries

327201.9k5](/packages/hisune-echarts-php)[zakirullin/mess

Convenient array-related routine &amp; better type casting

21228.9k2](/packages/zakirullin-mess)[iteks/laravel-enum

A comprehensive Laravel package providing enhanced enum functionalities, including attribute handling, select array conversions, and fluent facade interactions for robust enum management in Laravel applications.

2516.7k](/packages/iteks-laravel-enum)

PHPackages © 2026

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