PHPackages                             coreplex/bridge - 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. coreplex/bridge

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

coreplex/bridge
===============

A php package to share data from your back end code to the front end

v0.2.0(9y ago)01.6kMITPHPPHP &gt;=5.4.0

Since Apr 13Pushed 9y ago3 watchersCompare

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

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

Bridge [![Build Status](https://camo.githubusercontent.com/cc0297824e1d9383255b42f6f85c95c7ffe75ad12eaca00f4da51e796b80ccf7/68747470733a2f2f7472617669732d63692e6f72672f636f7265706c65782f6272696467652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/coreplex/bridge) [![Latest Stable Version](https://camo.githubusercontent.com/bc8c261fa071fb9592b740e1ad744b9b9201a6c8d0e5e06604bd593e81250533/68747470733a2f2f706f7365722e707567782e6f72672f636f7265706c65782f6272696467652f762f737461626c65)](https://packagist.org/packages/coreplex/bridge) [![License](https://camo.githubusercontent.com/d99e8397c944461dfa17223f65378d55dce24748de593f29952f132da0d06ab5/68747470733a2f2f706f7365722e707567782e6f72672f636f7265706c65782f6272696467652f6c6963656e7365)](https://packagist.org/packages/coreplex/bridge)
=================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#bridge---)

Ever found yourself needing to access back end data in your JavaScript or front end code? Well that's the aim of this package.

- [Installation](#installation)
    - [Laravel 5 Integration](#laravel-5-integration)
- [Usage](#usage)
- [Sharing Data](#sharing-data)
- [Rendering Data](#rendering-data)

Installation
------------

[](#installation)

This package requires PHP 5.4+, and includes a Laravel 5 Service Provider and Facade.

We recommend installing the package through composer. You can either call `composer require coreplex/notifier` in your command line, or add the following to your `composer.json` and then run either `composer install` or `composer update`to download the package.

```
"coreplex/bridge": "~0.1"
```

### Laravel 5 Integration

[](#laravel-5-integration)

To use the package with Laravel 5 firstly add the javascript service provider to the list of service providers in `app/config/app.php`.

```
'providers' => array(

  Coreplex\Bridge\JavascriptServiceProvider::class,

);
```

If you wish to use the facade then add the following to your aliases array in `app/config/app.php`.

```
'aliases' => array(

  'Javascript'  => Coreplex\Bridge\Facades\Javascript::class,

);
```

Usage
-----

[](#usage)

To get started with the JavaScript component you simply need to create a new instance of the `Javascript` class.

```
$bridge = new Javascript();
```

Or if you are using laravel then you can access the class via it's facade or you can resolve it from the IOC container by its contract.

```
Javascript::share('foo, 'bar');

public function __construct(Coreplex\Bridge\Contracts\Javascript $bridge)
{
    $this->bridge = $bridge;
}
```

Sharing Data
------------

[](#sharing-data)

To share data to the front end use the `share` method. You can either pass a key and value as arguments or pass an array of key value pairs. The share method can also be chained if you prefer.

```
$bridge->share('foo', 'bar')->share('baz', 'qux');
// OR
$bridge->share(['foo' => 'bar', 'baz' => 'qux']);
```

Rendering Data
--------------

[](#rendering-data)

To access your shared data on the front end call the `renderSharedData` method. This will then echo out all of the necessary scripts.

```
echo $bridge->renderSharedData();
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.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 ~216 days

Total

4

Last Release

3403d ago

### Community

Maintainers

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

---

Top Contributors

[![michaeljennings](https://avatars.githubusercontent.com/u/5189701?v=4)](https://github.com/michaeljennings "michaeljennings (21 commits)")[![georgehanson](https://avatars.githubusercontent.com/u/23167178?v=4)](https://github.com/georgehanson "georgehanson (1 commits)")[![midnite81](https://avatars.githubusercontent.com/u/254850?v=4)](https://github.com/midnite81 "midnite81 (1 commits)")

---

Tags

laravel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/coreplex-bridge/health.svg)

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

###  Alternatives

[highideas/laravel-users-online

This package will provide an online users management.

203113.2k1](/packages/highideas-laravel-users-online)[stephenjude/filament-blog

Filament Blog Builder

20317.8k](/packages/stephenjude-filament-blog)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11229.2k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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