PHPackages                             pharous-backend/laravel-eloquent-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. [Database &amp; ORM](/categories/database)
4. /
5. pharous-backend/laravel-eloquent-urls

ActiveLibrary[Database &amp; ORM](/categories/database)

pharous-backend/laravel-eloquent-urls
=====================================

Laravel - Model's Multi URLs

1.0.0(5y ago)09MITPHPPHP &gt;=7.2

Since Jan 31Pushed 5y agoCompare

[ Source](https://github.com/pharous-backend/laravel-eloquent-urls)[ Packagist](https://packagist.org/packages/pharous-backend/laravel-eloquent-urls)[ RSS](/packages/pharous-backend-laravel-eloquent-urls/feed)WikiDiscussions main Synced today

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

[![](https://camo.githubusercontent.com/be08fe0fa093b9ff9ac2acecc4bc151dc71b666935b06cfd2927300a7c12ca3f/68747470733a2f2f7777772e706861726f75732e636f6d2f6173736574732f736974652f696d672f6c6f676f2e737667)](https://pharous.com)

[![Source](https://camo.githubusercontent.com/7505ab96bef5c572e024c4ad0e0224967ba0fa01ade632e9e211ee3f4ad3e0c6/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d706861726f75735f6261636b656e642f6c61726176656c2d2d656c6f7175656e742d2d75726c732d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/pharous-backend/laravel-eloquent-urls) [![Packagist Version](https://camo.githubusercontent.com/ccd27ca71bbd3325356af055c65e15128a95ead5454b121555ad24c3274113e1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706861726f75732d6261636b656e642f6c61726176656c2d656c6f7175656e742d75726c733f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pharous-backend/laravel-eloquent-urls)
[![Laravel](https://camo.githubusercontent.com/66f24eb9d218cd86a1217f8a70f99b731d3a1c040c92adc0987873b80aceb8d8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d3e3d362e302d7265642e7376673f7374796c653d666c61742d737175617265)](https://laravel.com) [![Packagist Downloads](https://camo.githubusercontent.com/da6c56ae2864aa3669f5701e7b302c8f9592feaff06379b737bcc79d61514beb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706861726f75732d6261636b656e642f6c61726176656c2d656c6f7175656e742d75726c733f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/da6c56ae2864aa3669f5701e7b302c8f9592feaff06379b737bcc79d61514beb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706861726f75732d6261636b656e642f6c61726176656c2d656c6f7175656e742d75726c733f7374796c653d666c61742d737175617265) [![Source](https://camo.githubusercontent.com/30597ff9a350144f03bffdd9183e16468e0b3ca1193e1d08591d992622738d55/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/30597ff9a350144f03bffdd9183e16468e0b3ca1193e1d08591d992622738d55/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)

#### Laravel - Model's Multi URLs.

[](#laravel---models-multi-urls)

Install
-------

[](#install)

Install the latest version using [Composer](https://getcomposer.org/):

```
$ composer require pharous-backend/laravel-eloquent-urls
```

```
$ php artisan vendor:publish --tag=laravel-eloquent-urls
$ php artisan migrate
```

Usage
-----

[](#usage)

- [Install](#install)
- [Usage](#usage)
    - [Including it in a Model](#including-it-in-a-model)
    - [How to use](#how-to-use)
- [License](#license)

#### Including it in a Model

[](#including-it-in-a-model)

```
// An example
// Using HasURLs in User Model
...
use Pharous\Laravel\Eloquent\URL\HasURLs;

class User extends Model
{
    use HasURLs;

    /**
     * URLs Attributes
     *
     * @var array
     */
    protected $URLsAttributes = ['facebook'];
    ...
}
```

#### How to use

[](#how-to-use)

```
$user = User::find(1); 		                                // Model
$user->facebook = 'https://www.facebook.com/MoamenEltouny';     // Set Facebook URL
$user->facebook->click();                                       // Increment clicks count
echo $user->facebook->clicks;                                   // Display clicks count
echo $user->facebook->url;                                      // Display Facebook URL
```

License
-------

[](#license)

[MIT license](LICENSE.md)

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

1980d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/78150019?v=4)[PHAROUS.COM](/maintainers/pharous-backend)[@pharous-backend](https://github.com/pharous-backend)

---

Top Contributors

[![PHAROUS-COM](https://avatars.githubusercontent.com/u/73853678?v=4)](https://github.com/PHAROUS-COM "PHAROUS-COM (1 commits)")

---

Tags

phplaraveleloquenturlspharous

### Embed Badge

![Health badge](/badges/pharous-backend-laravel-eloquent-urls/health.svg)

```
[![Health](https://phpackages.com/badges/pharous-backend-laravel-eloquent-urls/health.svg)](https://phpackages.com/packages/pharous-backend-laravel-eloquent-urls)
```

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11223.5M33](/packages/anourvalar-eloquent-serialize)[langleyfoxall/xero-laravel

💸 Access the Xero accounting system using an Eloquent-like syntax

86242.7k](/packages/langleyfoxall-xero-laravel)[wayofdev/laravel-cycle-orm-adapter

🔥 A Laravel adapter for CycleORM, providing seamless integration of the Cycle DataMapper ORM for advanced database handling and object mapping in PHP applications.

3535.8k3](/packages/wayofdev-laravel-cycle-orm-adapter)[salehhashemi/laravel-repository

Implementing the repository pattern for Laravel projects.

2010.5k](/packages/salehhashemi-laravel-repository)[waad/laravel-model-metadata

A robust Laravel package for handling metadata with JSON casting, custom relation names, and advanced querying capabilities.

854.6k](/packages/waad-laravel-model-metadata)

PHPackages © 2026

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