Download the PHP package liliom/laravel-acquaintances without Composer
On this page you can find all versions of the php package liliom/laravel-acquaintances. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download liliom/laravel-acquaintances
More information about liliom/laravel-acquaintances
Files in liliom/laravel-acquaintances
Package laravel-acquaintances
Short Description This light package, with no dependencies, gives Eloquent models the ability to manage friendships (with groups), verifications, and interactions such as: Likes, favorites, votes, subscribe, follow, ..etc. And it includes advanced rating system.
License MIT
Informations about the package laravel-acquaintances
Laravel Acquaintances
Clean, modular social features for Eloquent models: Friendships, Verifications, Interactions (Follow/Like/Favorite/Report/Subscribe/Vote/View), and multi-type Ratings.
- PHP >= 8.1
- Illuminate components ^9.0 | ^10.0 | ^11.0 | ^12.0 | ^13.0 (Laravel 9–13)
- Laravel News: https://laravel-news.com/manage-friendships-likes-and-more-with-the-acquaintances-laravel-package
What's New in v4
- UUID / ULID morph support — configurable per table via
morphs,uuidMorphs, orulidMorphs. - Caching layer — in-memory request cache + optional persistent cache for interaction checks with automatic invalidation.
withAcquaintanceCounts()macro — eager-load interaction counts in a single query.HasAcquaintanceCounterstrait — auto-increment/decrement counter columns on your model's table.AcquaintancesCleanupJob— queued mass deletion of acquaintance data for deleted models.- Database indexes — composite and unique indexes on all tables for faster lookups.
- Morph map registration — automatic morph map for all package models.
- Strict return types on all traits and models.
- DB transactions for
blockFriend()andblockVerification(). - Interactions-only mode — disable friendships and/or verifications via
featuresconfig to skip their migrations entirely. Granular per-feature publish tags available.
See Upgrade Notes for migration steps.
TL;DR
Documentation
To keep this README concise, the full documentation lives under docs/:
- Overview
- Installation
- Configuration
- Friendships
- Verifications
- Interactions (Follow/Like/Favorite/Report/Subscribe/Vote/View)
- Ratings
- Migrations
- Events
- Testing
- FAQ
- Upgrade Notes
Quickstart
1) Install
2) Publish (optional) and migrate
Interactions-Only Mode
If you only need interactions (Follow, Like, Favorite, Subscribe, Vote, View, Report, Rate) and don't need Friendships or Verifications, disable them in config/acquaintances.php:
This prevents friendship and verification migrations from being loaded or published, keeping your database lean.
You can also publish migrations for specific features using granular tags:
Custom User Model Location
If your User model lives in a non-standard namespace (e.g., App\Models\Core\User), set user_model_class_name in config/acquaintances.php:
When null (default), the package resolves the user model from model_namespace + models.user (i.e., App\Models\User).
3) Add traits to your models
Explore the feature guides linked above for full APIs and examples.
Compatibility
| Version | PHP | Laravel |
|---|---|---|
| v4 | >= 8.1 | 9, 10, 11, 12, 13 |
| v3.x | >= 8.0 | 9, 10, 11, 12 |
Contributing / Changelog
- Contributing: see CONTRIBUTING.md
- Changes: see CHANGELOG.md
All versions of laravel-acquaintances with dependencies
illuminate/database Version ^12.0 || ^13.0
illuminate/events Version ^12.0 || ^13.0
illuminate/filesystem Version ^12.0 || ^13.0
illuminate/support Version ^12.0 || ^13.0