PHPackages                             miragepresent/likeable - 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. miragepresent/likeable

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

miragepresent/likeable
======================

Quick likes support

v0.1.0(8y ago)018MITPHPPHP &gt;=7.0

Since Jan 18Pushed 8y ago1 watchersCompare

[ Source](https://github.com/MiragePresent/likeable)[ Packagist](https://packagist.org/packages/miragepresent/likeable)[ RSS](/packages/miragepresent-likeable/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Likable Helper for Eloquent models
==================================

[](#likable-helper-for-eloquent-models)

Installation
------------

[](#installation)

Run `composer require miragepresent/likeable`;

And `php artisan migrate`

Usage
-----

[](#usage)

Just use `Likeable` trait in your model:

```
namespace App;

use Illuminate\Database\Eloquent\Model;
use MiragePresent\Likeable\Likeable;

class Photo extends Model {

    use Likeable;

}

```

Now You are able to use methods `like()`, `dislike()` and `toggleLike()` in your model for adding/removing a like of an authorized user.

Example:

```

/** @var \App\Photo $photo */
$photo = Photo::find(1);

// Add like to the photo
$photo->like();

var_dump($photo->is_liked); \\ true, 1

echo $photo->count_likes. ' user(s) liked this photo';
echo $photo->likedBy->ipmlode('name', ',') . ' liked this photo';

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

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

3039d ago

### Community

Maintainers

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

---

Top Contributors

[![MiragePresent](https://avatars.githubusercontent.com/u/12764275?v=4)](https://github.com/MiragePresent "MiragePresent (6 commits)")

---

Tags

laraveleloquentlikelikeablelikes supportlikes relation

### Embed Badge

![Health badge](/badges/miragepresent-likeable/health.svg)

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

###  Alternatives

[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[rtconner/laravel-likeable

Trait for Laravel Eloquent models to allow easy implementation of a 'like' or 'favorite' or 'remember' feature.

394388.0k5](/packages/rtconner-laravel-likeable)[qirolab/laravel-reactions

Implement reactions (like, dislike, love, emotion etc) on Laravel Eloquent models.

19564.6k](/packages/qirolab-laravel-reactions)[jamesmills/watchable

A package to allow your Models to become watchable by a User

685.5k](/packages/jamesmills-watchable)[devdojo/laravel-reactions

3529.7k](/packages/devdojo-laravel-reactions)[binafy/laravel-reactions

React to something in Laravel framework

874.5k](/packages/binafy-laravel-reactions)

PHPackages © 2026

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