PHPackages                             italofantone/links - 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. italofantone/links

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

italofantone/links
==================

A simple Laravel package to manage links. Polymorphic many-to-many relationship between links and any model.

v1.0.0(6mo ago)02MITPHPPHP &gt;=8.1

Since Oct 21Pushed 6mo agoCompare

[ Source](https://github.com/italofantone/links)[ Packagist](https://packagist.org/packages/italofantone/links)[ RSS](/packages/italofantone-links/feed)WikiDiscussions main Synced 1mo ago

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

My Links
========

[](#my-links)

A simple Laravel package to manage links. Polymorphic many-to-many relationship between links and any model.

Example: A `Post` model can have many links, and a `User` model can also have many links. Links can be shared among different models.

> ⚠️ This code was used for educational purposes \[...\]

### Installation

[](#installation)

```
composer require italofantone/links

```

### Usage

[](#usage)

1. Run migrations:

```
php artisan migrate

```

2. Use the `Linkable` trait in any model you want to associate links with:

```
use Italofantone\Links\Traits\Linkable;

class Post extends Model
{
    use Linkable;
}
```

3. Now you can attach, and detach links with your models:

```
$post = Post::find(1);
$link = Link::find(1);

// Attach a link to a post
$post->attachLink($link);

// Detach a link from a post
$post->detachLink($link);

// Get all links associated with a post
$links = $post->links;
```

Contact
-------

[](#contact)

- **Email**:
- **LinkedIn**: [italofantone](https://linkedin.com/in/italofantone)

Donations
---------

[](#donations)

If you find this project useful and would like to support its development, you can make a donation via PayPal:

- **PayPal:** [Donate via PayPal](https://paypal.me/italofantone)

Thank you for your support!

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance65

Regular maintenance activity

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

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

209d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/58f1263be6f7ad207e7ba2ed259fa140d9fa4d4090d27213743216f2108767a3?d=identicon)[italofantone](/maintainers/italofantone)

---

Top Contributors

[![italofantone](https://avatars.githubusercontent.com/u/8545964?v=4)](https://github.com/italofantone "italofantone (1 commits)")

### Embed Badge

![Health badge](/badges/italofantone-links/health.svg)

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

###  Alternatives

[barryvdh/laravel-ide-helper

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

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

Code Generators for Laravel Applications and Packages

20917.2M158](/packages/orchestra-canvas)[kirschbaum-development/commentions

A package to allow you to create comments, tag users and more

12369.2k](/packages/kirschbaum-development-commentions)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[glhd/special

1929.4k](/packages/glhd-special)[bjuppa/laravel-blog

Add blog functionality to your Laravel project

483.3k2](/packages/bjuppa-laravel-blog)

PHPackages © 2026

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