PHPackages                             mrshanebarron/likes - 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. mrshanebarron/likes

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

mrshanebarron/likes
===================

Like/reaction component for Laravel - supports Livewire and Vue

v1.0.1(4mo ago)09MITPHPPHP ^8.1

Since Dec 14Pushed 4mo agoCompare

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

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

Likes
=====

[](#likes)

A like button and reactions component for Laravel applications. Heart button with optional emoji reactions. Works with Livewire and Vue 3.

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

[](#installation)

```
composer require mrshanebarron/likes
```

Livewire Usage
--------------

[](#livewire-usage)

### Basic Usage

[](#basic-usage)

```

```

### With Reactions

[](#with-reactions)

```

```

### Livewire Props

[](#livewire-props)

PropTypeDefaultDescription`wire:model`boolean`false`Liked state`count`number`0`Like count`show-count`boolean`true`Display count`show-reactions`boolean`false`Show emoji reactionsVue 3 Usage
-----------

[](#vue-3-usage)

### Setup

[](#setup)

```
import { SbLikes } from './vendor/sb-likes';
app.component('SbLikes', SbLikes);
```

### Basic Usage

[](#basic-usage-1)

```

import { ref } from 'vue';

const liked = ref(false);
const likesCount = ref(42);

const handleLike = () => {
  likesCount.value++;
  // Save to backend
};

```

### With Reactions

[](#with-reactions-1)

```

import { ref } from 'vue';

const liked = ref(false);
const reactions = ref({ total: 156, like: 100, love: 30, haha: 26 });

const handleReaction = (type) => {
  console.log('Reacted with:', type);
};

```

### Custom Reactions

[](#custom-reactions)

```

const customReactions = [
  { type: 'fire', emoji: '🔥', label: 'Fire' },
  { type: 'rocket', emoji: '🚀', label: 'Rocket' },
  { type: 'clap', emoji: '👏', label: 'Clap' },
  { type: 'heart', emoji: '💖', label: 'Heart' }
];

```

### Post Card Example

[](#post-card-example)

```

    {{ post.title }}
    {{ post.excerpt }}

      {{ post.date }}

```

### Vue Props

[](#vue-props)

PropTypeDefaultDescription`modelValue`Boolean`false`Liked state`count`Number`0`Total likes`showCount`Boolean`true`Display count`showReactions`Boolean`false`Show reaction options`reactions`ArrayDefault setCustom reaction options### Events

[](#events)

EventPayloadDescription`update:modelValue``boolean`Like state changed`like`-Item liked`unlike`-Item unliked`react``type | null`Reaction selected/clearedDefault Reactions
-----------------

[](#default-reactions)

```
[
  { type: 'like', emoji: '👍', label: 'Like' },
  { type: 'love', emoji: '❤️', label: 'Love' },
  { type: 'haha', emoji: '😂', label: 'Haha' },
  { type: 'wow', emoji: '😮', label: 'Wow' },
  { type: 'sad', emoji: '😢', label: 'Sad' },
  { type: 'angry', emoji: '😠', label: 'Angry' }
]
```

Features
--------

[](#features)

- **Heart Button**: Toggle like with animation
- **Like Count**: Optional count display
- **Emoji Reactions**: Facebook-style reactions
- **Scale Animation**: Heart scales on like
- **Selected State**: Highlights selected reaction
- **Custom Reactions**: Define your own emojis

Styling
-------

[](#styling)

Uses Tailwind CSS:

- Rounded pill button
- Red fill when liked
- Hover scale on reactions
- Ring highlight on selection
- Smooth transitions

Requirements
------------

[](#requirements)

- PHP 8.1+
- Laravel 10, 11, or 12
- Tailwind CSS 3.x

License
-------

[](#license)

MIT License

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance79

Regular maintenance activity

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

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

Total

2

Last Release

144d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a38dc9b4ccc180ee3e9df8879f8747ea9dbf36812c6546827fe504fa8993eb8?d=identicon)[mrshanebarron](/maintainers/mrshanebarron)

### Embed Badge

![Health badge](/badges/mrshanebarron-likes/health.svg)

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

###  Alternatives

[barryvdh/laravel-ide-helper

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

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

Code Generators for Laravel Applications and Packages

21017.2M157](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M210](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M858](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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