PHPackages                             rmunate/php2js - 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. rmunate/php2js

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

rmunate/php2js
==============

Effortlessly share PHP Laravel values with external JavaScript files using just one command, thanks to the seamless integration of PHP2JS.

v4.6.0(11mo ago)2068.2k↓50%17[1 issues](https://github.com/rmunate/PHP2JS/issues)MITPHPPHP ^8.1CI passing

Since May 11Pushed 11mo ago2 watchersCompare

[ Source](https://github.com/rmunate/PHP2JS)[ Packagist](https://packagist.org/packages/rmunate/php2js)[ Docs](https://github.com/rmunate/PHP2JS)[ RSS](/packages/rmunate-php2js/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (31)Used By (0)

PHP2JS
======

[](#php2js)

🚀 Seamless Integration: PHP2JS 🚀
--------------------------------

[](#-seamless-integration-php2js-)

Share PHP Laravel values effortlessly with external JavaScript files using just one command, thanks to the seamless integration of PHP2JS.

Developing Laravel monoliths has never been easier and more efficient! 💻✨

The Library that Made Handling Monoliths in Laravel Simple - LARAVEL PHP Framework
----------------------------------------------------------------------------------

[](#the-library-that-made-handling-monoliths-in-laravel-simple---laravel-php-framework)

[![LOGO-PHP2JS](https://private-user-images.githubusercontent.com/91748598/332193081-53afbd9c-0ffc-414c-aa14-b53663f5621e.jpg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzIxNTI0MDUsIm5iZiI6MTc3MjE1MjEwNSwicGF0aCI6Ii85MTc0ODU5OC8zMzIxOTMwODEtNTNhZmJ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YzlkYTRhYzU1NmZlMzQ0ZjM5YmE5MDg4ZWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.16ADKn3AJoPwE_Vb2IEBleXEoQ47uk5-odJ6ycdahCk)

Documentation
-------------

[](#documentation)

[![📖📖📖 FULL DOCUMENTATION 📖📖📖](https://camo.githubusercontent.com/6f36b5a4553c4ba008312196913d26ef9049875070a19e40c56b61005f7f578f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f46554c4c253230444f43554d454e544154494f4e2d5669736974253230486572652d626c75653f7374796c653d666f722d7468652d6261646765)](https://rmunate.github.io/PHP2JS/)

Installation PHP2JS
-------------------

[](#installation-php2js)

To install the dependency via Composer.

```
composer require rmunate/php2js
```

License
-------

[](#license)

This project is under the [MIT License](https://choosealicense.com/licenses/mit/).

🌟 Support My Projects! 🚀

[![Become a Sponsor](https://camo.githubusercontent.com/409183a5cd4c3dcbc4c876d9706710324995ba6125c99f118651a0db05185fc6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d4265636f6d652532306125323053706f6e736f722d626c75653f7374796c653d666f722d7468652d6261646765266c6f676f3d676974687562)](https://github.com/sponsors/rmunate)

Make any contributions you see fit; the code is entirely yours. Together, we can do amazing things and improve the world of development. Your support is invaluable. ✨

If you have ideas, suggestions, or just want to collaborate, we are open to everything! Join our community and be part of our journey to success! 🌐👩‍💻👨‍💻

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance52

Moderate activity, may be stable

Popularity41

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 64.3% 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 ~27 days

Recently: every ~136 days

Total

29

Last Release

342d ago

Major Versions

v2.6.4 → v3.5.12023-06-24

v3.8.14 → v4.0.02023-11-17

PHP version history (4 changes)v2.6.0PHP ^7.4 || ^8.0

v3.5.1PHP ^7.4|^8.0

v4.5.0PHP ^8.0

v4.5.1PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/3deb39476248b9a0faf9fb8e354699fa716d5a2dd242f417105e5b47acab6b8a?d=identicon)[rmunate](/maintainers/rmunate)

---

Top Contributors

[![rmunate](https://avatars.githubusercontent.com/u/91748598?v=4)](https://github.com/rmunate "rmunate (27 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (12 commits)")[![alejandrodiazpinilla](https://avatars.githubusercontent.com/u/51100789?v=4)](https://github.com/alejandrodiazpinilla "alejandrodiazpinilla (2 commits)")[![GoodWave2020](https://avatars.githubusercontent.com/u/65487142?v=4)](https://github.com/GoodWave2020 "GoodWave2020 (1 commits)")

---

Tags

laravel-frameworklibraryphpphp2jsphp2jstojstoStrictJS

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/rmunate-php2js/health.svg)

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[illuminate/pipeline

The Illuminate Pipeline package.

9346.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)[illuminate/cookie

The Illuminate Cookie package.

224.3M122](/packages/illuminate-cookie)

PHPackages © 2026

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