PHPackages                             stri8ed/laravel-config-js - 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. stri8ed/laravel-config-js

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

stri8ed/laravel-config-js
=========================

Laravel package for exposing configs in JS

v1.0.2(1y ago)0215MITPHPPHP ^8.0

Since Nov 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/stri8ed/laravel-config-js)[ Packagist](https://packagist.org/packages/stri8ed/laravel-config-js)[ RSS](/packages/stri8ed-laravel-config-js/feed)WikiDiscussions main Synced 1mo ago

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

Laravel Config JS
=================

[](#laravel-config-js)

A Laravel package that exposes your Laravel configuration values to JavaScript.

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

[](#installation)

```
composer require stri8ed/laravel-config-js
```

Usage
-----

[](#usage)

In your Blade views, use the `@configJs` directive to expose specific config values:

```
@configJs('app.name')
```

This creates a global `laravelConfig()` function that you can use in JavaScript:

```
// Get a single config value
const appName = laravelConfig('app.name');

// With a default value
const debug = laravelConfig('app.debug', false);
```

You can expose multiple config values:

```
@configJs(['app.name', 'app.env', 'services.api.key'])
```

Configuration
-------------

[](#configuration)

Optionally publish the config file to customize the JavaScript function name:

```
php artisan vendor:publish --tag="config-js"
```

License
-------

[](#license)

MIT

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Total

3

Last Release

545d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4fad0bcdf8cd9811347b5bf6af805b90b6a1ce3115de3748077d98cb23bca98c?d=identicon)[levi\_me](/maintainers/levi_me)

---

Top Contributors

[![stri8ed](https://avatars.githubusercontent.com/u/1766843?v=4)](https://github.com/stri8ed "stri8ed (2 commits)")

---

Tags

laravel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/stri8ed-laravel-config-js/health.svg)

```
[![Health](https://phpackages.com/badges/stri8ed-laravel-config-js/health.svg)](https://phpackages.com/packages/stri8ed-laravel-config-js)
```

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4205.3M84](/packages/livewire-volt)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

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