PHPackages                             sunmant/phpconst2js - 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. sunmant/phpconst2js

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

sunmant/phpconst2js
===================

A small library for converting PHP class constants to JSON array. You can use it when you new constants values from PHP backend in JavaScript code

v1.0(8y ago)018Apache-2.0PHP &gt;=5.4

Since Dec 26Compare

[ Source](https://github.com/lebedevsergey/phpconst2js)[ Packagist](https://packagist.org/packages/sunmant/phpconst2js)[ RSS](/packages/sunmant-phpconst2js/feed)WikiDiscussions Synced 3d 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/lebedevsergey/phpconst2js).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

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

Unknown

Total

1

Last Release

3061d ago

### Community

Maintainers

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sunmant-phpconst2js/health.svg)

```
[![Health](https://phpackages.com/badges/sunmant-phpconst2js/health.svg)](https://phpackages.com/packages/sunmant-phpconst2js)
```

###  Alternatives

[scheb/tombstone

Dead code detection with tombstones for PHP

282578.2k2](/packages/scheb-tombstone)[miaababikir/laravel-tailwind-dashboard-preset

Laravel tailwind css dashboard preset

3634.7k](/packages/miaababikir-laravel-tailwind-dashboard-preset)[jansenfelipe/cpf-gratis

Com esse pacote você poderá consultar, gratuitamente, CPFs diretamente no site da receita.

1895.9k](/packages/jansenfelipe-cpf-gratis)[denisogr/yii2-cronjobs

cronjobs

4737.1k1](/packages/denisogr-yii2-cronjobs)[inpsyde/wp-stubs

WordPress Stubs

2362.3k4](/packages/inpsyde-wp-stubs)[zackslash/php-web-article-extractor

Web Article Extractor

452.1k](/packages/zackslash-php-web-article-extractor)

PHPackages © 2026

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