PHPackages                             pichicacax/laravel-js-route - 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. pichicacax/laravel-js-route

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

pichicacax/laravel-js-route
===========================

Convert all your routes and enable named route usage in Javascript

v1.0.0(6y ago)226MITPHPPHP ^7.2

Since Feb 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/pichicacax/laravel-js-route)[ Packagist](https://packagist.org/packages/pichicacax/laravel-js-route)[ RSS](/packages/pichicacax-laravel-js-route/feed)WikiDiscussions master Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Laravel JS Routes
=================

[](#laravel-js-routes)

Convert all your routes and enable named route usage in the front-end.

Laravel Support
---------------

[](#laravel-support)

Compatible with Laravel 6.x, 5.8, and 5.7.

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

[](#installation)

1. Install via Composer

```
composer require pichicacax/laravel-js-route

```

2. Add the following service provider to your **config/app.php** file

```
Pichicacax\LaravelJsRoute\LaravelJsRouteServiceProvider::class
```

Usage
-----

[](#usage)

### Generating routes for JS

[](#generating-routes-for-js)

```
php artisan route:js

```

By default, the JS target is **resources/assets/js/routes.js**. You may change this by providing a custom target

```
php artisan route:js /path/custom-target.js

```

### JS usage

[](#js-usage)

```
import {route} from './routes';
```

Generate a URL using a named route

```
route("welcome")
```

Providing parameters

```
route("foo.edit", fooId)
```

```
route("bar.index", {
	param1: value1,
	param2: value2
})
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

2

Last Release

2331d ago

Major Versions

v0.1-alpha → v1.0.02020-02-14

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8698840?v=4)[My Oliveros](/maintainers/pichicacax)[@pichicacax](https://github.com/pichicacax)

---

Top Contributors

[![pichicacax](https://avatars.githubusercontent.com/u/8698840?v=4)](https://github.com/pichicacax "pichicacax (1 commits)")

### Embed Badge

![Health badge](/badges/pichicacax-laravel-js-route/health.svg)

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

###  Alternatives

[pn/swiftcodes

Swift Codes or BIC Codes for all the Banks in the world. Cached to json.

19691.1k](/packages/pn-swiftcodes)

PHPackages © 2026

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