PHPackages                             sukohi/laravel-absolute-url - 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. sukohi/laravel-absolute-url

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

sukohi/laravel-absolute-url
===========================

A Laravel package to generate absolute URL.

1.0.1(9y ago)0321MITPHP

Since Dec 15Pushed 9y ago1 watchersCompare

[ Source](https://github.com/SUKOHI/laravel-absolute-url)[ Packagist](https://packagist.org/packages/sukohi/laravel-absolute-url)[ RSS](/packages/sukohi-laravel-absolute-url/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (4)Used By (1)

laravel-absolute-url
====================

[](#laravel-absolute-url)

A Laravel package to generate absolute URL.

Installation
============

[](#installation)

Execute the following composer command.

```
composer require sukohi/laravel-absolute-url:1.*

```

Register the service provider in app.php

```
'providers' => [
    ...Others...,
    Sukohi\LaravelAbsoluteUrl\LaravelAbsoluteUrlServiceProvider::class,
]

```

Also alias

```
'aliases' => [
    ...Others...,
    'LaravelAbsoluteUrl' => Sukohi\LaravelAbsoluteUrl\Facades\LaravelAbsoluteUrl::class
]

```

Usage
=====

[](#usage)

```
// 1. Set Base URL

$base_url = 'http://example.com/1/2/3/';
$absolute_path = \LaravelAbsoluteUrl::baseUrl($base_url);

// 2. Get Absolute URL

echo $absolute_path->get('/test.html');  // http://example.com/test.html
echo $absolute_path->get('../test.html');  // http://example.com/1/2/test.html
echo $absolute_path->get('./test.html');  // http://example.com/1/2/3/test.html
echo $absolute_path->get('test.html');  // http://example.com/1/2/3/test.html

```

License
=======

[](#license)

This package is licensed under the MIT License.

Copyright 2016 Sukohi Kuhoh

###  Health Score

28

—

LowBetter than 51% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Total

3

Last Release

3482d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2980d59b309d45df3f2e6e51b1d336614da063240b8f76f873f287cd745ec5db?d=identicon)[Sukohi](/maintainers/Sukohi)

---

Top Contributors

[![SUKOHI](https://avatars.githubusercontent.com/u/5362394?v=4)](https://github.com/SUKOHI "SUKOHI (3 commits)")

### Embed Badge

![Health badge](/badges/sukohi-laravel-absolute-url/health.svg)

```
[![Health](https://phpackages.com/badges/sukohi-laravel-absolute-url/health.svg)](https://phpackages.com/packages/sukohi-laravel-absolute-url)
```

###  Alternatives

[crumbls/layup

A visual page builder plugin for Filament 5 — Divi-style grid layouts with extensible widgets.

604.0k2](/packages/crumbls-layup)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3622.8k](/packages/duncanmcclean-statamic-cargo)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1422.0k5](/packages/team-nifty-gmbh-tall-datatables)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.8k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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