PHPackages                             noahbass/smart-urls - 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. noahbass/smart-urls

ActiveLibrary

noahbass/smart-urls
===================

Laravel package to use protocol-relative urls.

18PHP

Since Jan 13Pushed 11y ago1 watchersCompare

[ Source](https://github.com/noahbass/smart-urls)[ Packagist](https://packagist.org/packages/noahbass/smart-urls)[ RSS](/packages/noahbass-smart-urls/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Smart URLs
------------------

[](#laravel-smart-urls)

[![Build Status](https://camo.githubusercontent.com/ab64c3068d05930637eb5096f4f89765afe27678386d2b9319784a5ebd11ad6f/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6e6f6168626173732f736d6172742d75726c732e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/noahbass/smart-urls)[![Release](https://camo.githubusercontent.com/1826eef984816190a2bfd43e2883a6660bb9aebb4ca6e49b30b08ccb054ce43c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6e6f6168626173732f736d6172742d75726c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/noahbass/smart-urls)[![License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/noahbass/smart-urls/blob/master/LICENSE)

Make laravel smarter by producing [protocol-relative urls](https://en.wikipedia.org/wiki/Uniform_resource_locator#Protocol-relative_URLs).

### Versions

[](#versions)

Currently supports Laravel 4. Laravel 5 coming soon.

### Installation

[](#installation)

Composer require:

```
composer require noahbass/smart-urls

```

Or add it to `composer.json`:

```
"require": {
	"noahbass/smart-urls": "dev-master"
}

```

#### URLs

[](#urls)

`Noahbass\SmartUrls\SUrl` is available for alias. Use it in `app/config/app.php`:

```
'URL' => 'Noahbass\SmartUrls\SUrl'
```

URL usage:

```
{{ URL::to('something') }}
# will produce: ///something
```

#### Forms

[](#forms)

`Noahbass\SmartUrls\SForm` is available for alias. It must be used in combination with `Illuminate\Support\Facades\Form`. Use it at your leisure in `app/config/app.php`:

```
'Form'  => 'Illuminate\Support\Facades\Form',
'SForm' => 'Noahbass\SmartUrls\SForm'
```

Form usage (`SForm` only works for `open`, `close`, and `model` methods):

```
{{ SForm::open(['url' => 'something']) }}
# will produce: ...
```

### Todo

[](#todo)

- Add the same protocal-relative urls for laravel forms and etc.
- Testing

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![noahbass](https://avatars.githubusercontent.com/u/3453188?v=4)](https://github.com/noahbass "noahbass (20 commits)")

### Embed Badge

![Health badge](/badges/noahbass-smart-urls/health.svg)

```
[![Health](https://phpackages.com/badges/noahbass-smart-urls/health.svg)](https://phpackages.com/packages/noahbass-smart-urls)
```

PHPackages © 2026

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