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 today

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 54% 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

4025d 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

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M682](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M157](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M210](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M857](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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