PHPackages                             lchhieu/push\_view - 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. lchhieu/push\_view

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

lchhieu/push\_view
==================

PushView package support append javascript to view in Laravel

213PHP

Since Nov 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/lchhieu/push_view)[ Packagist](https://packagist.org/packages/lchhieu/push_view)[ RSS](/packages/lchhieu-push-view/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

About
-----

[](#about)

- PushView package support append javascript to view in Laravel
- Package will be extremely useful when you want to automatically translate text from php and the client side will receive the translated text

```
class BaseController extends Controller
{
    public function index()
    {
        \PushViewJS::put([
            'translate' => ['confirmation' => trans('labels.confirmation')]
        ]);

        return view('welcome');
    }
}

window.Core = window.Core || {};
Core.translate = {"confirmation":{"title":"Are you sure?","confirm_dirty_form":"Do you want to save the changes made before switching?","yes":"Yes","skip_continue":"Skip & Continue","cancel":"Cancel","delete":{"yes":"Yes delete it!","text":"You won't be able to revert this!"}}};

```

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

[](#installation)

1. Install using Composer

```
composer require lchhieu/push_view

```

If you're using Laravel 5.5 or later you can start using the package at this point. PushView is auto-discovered by the Laravel framework.

2. Add the service provider to the providers array in your `config/app.php`.

```
    'Lchhieu\PushView\Providers\ViewServiceProvider::class',
```

3. Add the facade in `config/app.php`

```
    'PushViewJS'      => Lchhieu\PushView\Facades\JavaScriptFacade::class
```

4. Finaly Pulish the package configuration by running this CMD

    php artisan vendor:publish --provider="Lchhieu\\PushView\\Providers\\ViewServiceProvider"

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c877ada37c3bf3c81309b485cad71abfbf76295ca70f48518f05951e28683a5?d=identicon)[lchhieu](/maintainers/lchhieu)

### Embed Badge

![Health badge](/badges/lchhieu-push-view/health.svg)

```
[![Health](https://phpackages.com/badges/lchhieu-push-view/health.svg)](https://phpackages.com/packages/lchhieu-push-view)
```

###  Alternatives

[nguyendachuy/laravel-menu

Laravel Menu Builder | Drag &amp; Drop | Bootstrap | Laravel 7 | Laravel 8 | Laravel 9 | Laravel 10 | Laravel 11 | Laravel 12

162.2k](/packages/nguyendachuy-laravel-menu)

PHPackages © 2026

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