PHPackages                             bitfumes/laravel-likker - 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. bitfumes/laravel-likker

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

bitfumes/laravel-likker
=======================

laravel like,laravel liker, laravel love, like, favorite

v5.0(3y ago)62711MITPHPCI failing

Since Oct 10Pushed 3y ago1 watchersCompare

[ Source](https://github.com/bitfumes/laravel-likker)[ Packagist](https://packagist.org/packages/bitfumes/laravel-likker)[ RSS](/packages/bitfumes-laravel-likker/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)Dependencies (6)Versions (8)Used By (0)

Laravel Likker
==============

[](#laravel-likker)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/08613d7bd020290a2bf9314b6e0d14869e1ea8458d661d04270e64c52a1a016c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62697466756d65732f6c61726176656c2d6c696b6b65722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/bitfumes/laravel-likker/build-status/master)[![Total Downloads](https://camo.githubusercontent.com/eec5acbe6b4b290ba1b6a4764722f8f371df89f03056d1d7ed44b92982ce3c09/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f42697466756d65732f6c61726176656c2d6c696b6b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bitfumes/laravel-likker)[![GitHub stars](https://camo.githubusercontent.com/b42a07a398958356d79807140b28777f5b062f49d594bbb3377ed6eae082505c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f62697466756d65732f6c61726176656c2d6c696b6b65722e737667)](https://github.com/bitfumes/laravel-likker/stargazers)[![GitHub issues](https://camo.githubusercontent.com/cf80bebd5ea190775a99f022e114bea9e6cf69fc71fde09cdbc36cbf347bdcdd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f62697466756d65732f6c61726176656c2d6c696b6b65722e737667)](https://github.com/bitfumes/laravel-likker/issues)

Introduction
------------

[](#introduction)

This package helps you to have like system in any model. It has very simple api to like and unlike.

Install
-------

[](#install)

`composer require bitfumes/laravel-likker`

Usage
-----

[](#usage)

### Prepare Likable Model

[](#prepare-likable-model)

Use `Likable` contract and `canBeLiked` trait in your model which can be liked.

```
use Illuminate\Database\Eloquent\Model;
use Bitfumes\Likker\Contracts\Likeable;
use Bitfumes\Likker\Traits\CanBeLiked;

class Post extends Model implements Likeable
{
    use CanBeLiked;
}
```

### Prepare Liker Model

[](#prepare-liker-model)

Use `Liker` contract and `canLike` trait in your model which can like.

```
use Illuminate\Foundation\Auth\User as Authenticatable;
use Bitfumes\Likker\Contracts\Liker;
use Bitfumes\Likker\Traits\CanLike;

class User extends Authenticatable implements Liker
{
    use CanLike;
}
```

### Methods Available

[](#methods-available)

#### Likes

[](#likes)

Like a model

```
// Like by authenticated user
$post->likeIt();
// Like by any user
$post->likeIt($user);
```

#### UnLikes

[](#unlikes)

Unlike already liked model

```
// Remove Like by authenticated user
$post->unLikeIt();
// Like by any user
$post->unLikeIt($user);
```

#### Toggle Like

[](#toggle-like)

It can toggle like.

```
// Toggle like by authenticated user
$post->toggleLike();
// Toggle like by any user
$post->toggleLike($user);
```

#### Check if Model is alread liked or not

[](#check-if-model-is-alread-liked-or-not)

```
// Return boolean
$post->isLiked();
```

Like Counts
-----------

[](#like-counts)

```
// it counts the like for given model
$post->countLikes();
```

Testing
-------

[](#testing)

Run the tests with:

```
vendor/bin/phpunit
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security-related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](/LICENSE.md) for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

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

Recently: every ~325 days

Total

7

Last Release

1149d ago

Major Versions

v1.0.0 → v2.0.02019-08-19

v2.0.1 → v3.0.02019-09-10

v3.0.0 → v4.0.02020-09-12

v4.0.1 → v5.02023-03-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a9226970b64f8955d80a2a7e50617a178e9cf7940b2aaa8cc302e7b0687ae67?d=identicon)[Bitfumes](/maintainers/Bitfumes)

---

Top Contributors

[![sarthaksavvy](https://avatars.githubusercontent.com/u/41295276?v=4)](https://github.com/sarthaksavvy "sarthaksavvy (13 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bitfumes-laravel-likker/health.svg)

```
[![Health](https://phpackages.com/badges/bitfumes-laravel-likker/health.svg)](https://phpackages.com/packages/bitfumes-laravel-likker)
```

###  Alternatives

[vsn4ik/bootstrap-submenu

Bootstrap Sub-Menus

46310.3k](/packages/vsn4ik-bootstrap-submenu)[iwanli/wxxcx

A WeChat applet (xiaochengxu) plugins for Laravel 5.

12119.3k](/packages/iwanli-wxxcx)

PHPackages © 2026

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