PHPackages                             jackpopp/tura - 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. jackpopp/tura

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

jackpopp/tura
=============

Tura - use laravel named routes in your javascript.

1.2(11y ago)731MITPHPPHP &gt;=5.4.0

Since Aug 29Pushed 11y ago4 watchersCompare

[ Source](https://github.com/jackpopp/tura)[ Packagist](https://packagist.org/packages/jackpopp/tura)[ RSS](/packages/jackpopp-tura/feed)WikiDiscussions master Synced 3w ago

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

Tura
====

[](#tura)

### Use laravel named routes in your javascript.

[](#use-laravel-named-routes-in-your-javascript)

Register named routes in routes.php and add they key **tura** with the value true to the options array. Tura will only expose routes which have been set to be exposed.

```
Route::get('/', array(
    'uses' => 'HomeController@index',
    'as'   => 'home',
    'tura' => true
));

Route::get('user', array(
    'uses' => 'HomeController@index',
    'as'   => 'user.create'
));

Route::get('user/{id}', array(
    'uses' => 'HomeController@index',
    'as'   => 'user.show',
    'tura' => true
));
```

You can now access your exposed named routes as a JSON object by calling the fetch routes method (this could be called in your master blade layout for example).

```
Tura::fetchRoutes();
```

The named routes will now be available in the javascript global scope by calling the **tura** object

```
console.log(tura)
Object {home: "/", user.show: "user/{id}"}
console.log(tura['user.show'])
"user/{id}"
```

Install via composer add to require in composer.json

```
"jackpopp/tura": "dev-master"

```

Add the service provider and class alias to app.php config (found in app/config/app.php)

Add to the providers array

```
'Jackpopp\Tura\TuraServiceProvider',
```

Add to the aliases array

```
'Tura' => 'Jackpopp\Tura\TuraServiceProvider',
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 64.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 ~123 days

Total

3

Last Release

4080d ago

### Community

Maintainers

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

---

Top Contributors

[![jackpopp](https://avatars.githubusercontent.com/u/1695389?v=4)](https://github.com/jackpopp "jackpopp (9 commits)")[![stedop](https://avatars.githubusercontent.com/u/5964949?v=4)](https://github.com/stedop "stedop (5 commits)")

### Embed Badge

![Health badge](/badges/jackpopp-tura/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M278](/packages/illuminate-pipeline)[illuminate/broadcasting

The Illuminate Broadcasting package.

7127.2M208](/packages/illuminate-broadcasting)[illuminate/redis

The Illuminate Redis package.

8314.6M370](/packages/illuminate-redis)

PHPackages © 2026

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