PHPackages                             peyman-manteali/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. peyman-manteali/likeable

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

peyman-manteali/likeable
========================

implementation likeable service for laravel project

06PHP

Since Jan 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/PeymanManteali/LikeablePackage)[ Packagist](https://packagist.org/packages/peyman-manteali/likeable)[ RSS](/packages/peyman-manteali-likeable/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

LikeablePackage
===============

[](#likeablepackage)

for laravel 8.x or above

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

[](#installation)

Use the package manager [composer](https://getcomposer.org) to install Likeable.

```
composer require peyman-manteali/likeable
```

Run the migrations

```
php artisan migrate
```

Usage
-----

[](#usage)

```
class Post extends Model
{
    use PeymanManteali\Likeable
}
```

Methods
-------

[](#methods)

```
    $post->likes();
    // Collection (Illuminate\Database\Eloquent\Collection)
    // of existing likes and dislikes for this post.

    $post->like(); // like the post for current user.
    $post->dislike(); // dislike the post for current user.

    $post->removeLike(); // remove like from this post for current user.
    $post->removeDislike(); // remove dislike from this post for current user.

    $post->isLiked(); // check if current user liked the post.
    $post->isDisliked(); // check if current user disliked the post.

    $post->likeCount; // get Total count of likes.
    $post->dislikeCount; // get Total count of dislikes.

    Post::likedBy($userId) // find only posts where user liked them.
    Post::dislikedBy($userId) // find only posts where user disliked them.

```

---

### License \[MIT\]()

[](#license-mithttpschoosealicensecomlicensesmit)

Developed by Peyman Manteali

payman.manteali@gmail.com

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 Bus Factor1

Top contributor holds 76.5% 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://avatars.githubusercontent.com/u/156663346?v=4)[PeymanManteali](/maintainers/PeymanManteali)[@PeymanManteali](https://github.com/PeymanManteali)

---

Top Contributors

[![PeymanMantali](https://avatars.githubusercontent.com/u/130888146?v=4)](https://github.com/PeymanMantali "PeymanMantali (13 commits)")[![PeymanManteali](https://avatars.githubusercontent.com/u/156663346?v=4)](https://github.com/PeymanManteali "PeymanManteali (4 commits)")

### Embed Badge

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

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

###  Alternatives

[tomloprod/radiance

A deterministic mesh gradient avatar generator for PHP.

1407.5k](/packages/tomloprod-radiance)

PHPackages © 2026

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