PHPackages                             amgrade/bifrost - 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. amgrade/bifrost

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

amgrade/bifrost
===============

Bridge between PHP and JS variables

v1.1.0(6mo ago)0245MITPHPPHP &gt;=8.0

Since Nov 7Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/AMgrade/bifrost)[ Packagist](https://packagist.org/packages/amgrade/bifrost)[ RSS](/packages/amgrade-bifrost/feed)WikiDiscussions main Synced 1mo ago

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

Bifrost
-------

[](#bifrost)

This package deleloped to be like a bridge between PHP and JavaScript.

### Installation

[](#installation)

```
composer require amgrade/bifrost
```

### Usage

[](#usage)

```
// Somewhere in your controller class.
\AMgrade\Bifrost\Bifrost::push(['foo' => 'bar', 'baz' => 'foo']);
```

```
// Later in your view (e.g. Laravel Blade).

...
{!! \AMgrade\Bifrost\Bifrost::toHtml() !!}

```

```
// In your JS app.
console.log(window.Bifrost.foo);
console.log(window.Bifrost.baz);
```

### Configuration

[](#configuration)

You can pass your own namespace to prevent name conflicts.

```

...
{!! \AMgrade\Bifrost\Bifrost::toHtml('YOUR_NAMESPACE') !!}

```

```
// In your JS app.
console.log(window.YOUR_NAMESPACE.foo);
console.log(window.YOUR_NAMESPACE.baz);
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance66

Regular maintenance activity

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Total

2

Last Release

196d ago

### Community

Maintainers

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

---

Top Contributors

[![MCMatters](https://avatars.githubusercontent.com/u/3148853?v=4)](https://github.com/MCMatters "MCMatters (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/amgrade-bifrost/health.svg)

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

###  Alternatives

[aiz-packages/color-code-converter

HEX code coverted to RGB color code

1419.5k](/packages/aiz-packages-color-code-converter)[boomcms/boom-core

Core classes for BoomCMS

193.0k6](/packages/boomcms-boom-core)

PHPackages © 2026

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