Ấn Độqirolab/laravel-reactions
Laravel reactions package for implementing reactions (eg: like, dislike, love, emotion, etc) on Eloquent models.
🎯 Thêm reaction đa dạng (like, dislike, love...) vào Eloquent Model chỉ trong vài bước
Package Laravel Reactions cho phép bạn dễ dàng tích hợp hệ thống reaction phong phú lên bất kỳ model nào trong Laravel mà không cần viết boilerplate.
Laravel Reactions là package do Qirolab phát triển, giúp triển nhật implement nhanh chức năng reaction (like, dislike, love, emotion, v.v.) lên các Eloquent model. Chỉ cần cài qua Composer, chạy migration và áp dụng trait + interface vào model, toàn bộ logic lưu trữ, đếm, kiểm tra và sự kiện đã sẵn sàng.
✨ Điểm nổi bật
- Cài đặt nhanh: Hỗ trợ Laravel Package Auto-Discovery, chỉ cần
composer requirelà xong. - Migration tùy biến: Có thể publish migration ra ngoài để chỉnh sửa trước khi chạy.
- Hỗ trợ config tùy chọn: Publish file config để tùy chỉnh reaction types và cài đặt khác.
- Trait & Interface rõ ràng: Dùng
Reactstrait cho User vàReactabletrait cho model nhận reaction. - API phong phú: Hỗ trợ react, remove, toggle, kiểm tra đã react, lấy tóm tắt reaction, danh sách người dùng react.
- Eloquent Scope: Tìm kiếm model theo người đã reaction bằng
whereReactedBy. - Event hệ thống: Tự động dispatch
OnReactionvàOnDeleteReactionkhi thay đổi.
💡 Vì sao đáng chú ý
Thay vì phải tự xây dựng bảng reaction, logic lưu trữ và API riêng cho từng model, Laravel Reactions cung cấp một giải pháp chuẩn, tái sử dụng được trên toàn dự án. Phù hợp cho các ứng dụng cần tích hợp nhanhan tính năng like, dislike, yêu thích hoặc các dạng emotion phong phú trên bài viết, sản phẩm, hay bất kỳ nội dung nào.
#Laravel #PHP #Eloquent #OpenSource #TiniX
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
Add Social Reactions to Laravel Eloquent Models. It lets people express how they feel about the content. Fully customizable Weighted Reaction System & Reaction Type System with Like, Dislike and any other custom emotion types. Do you react?
A MongoDB based Eloquent model and Query builder for Laravel (Moloquent)
WordPress engagement plugin with Like/Dislike buttons, analytics, and developer hooks. Supports Posts, Comments, WooCommerce, BuddyPress, and bbPress. Fast, GDPR-ready, and used by 80,000+ websites.
An Android library that encourages users to rate the app on the Google Play.
⭐️ A tiny library for iOS and macOS to request reviews on the App Store. This is a wrapper around the native SKStoreReviewController.
⭐️ ❤️ 😀 An interactive rating component for React Native that can display ratings using stars, hearts, emojis, or custom symbols.