PHPackages                             miladimos/laravel-social - 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. miladimos/laravel-social

ActiveLibrary

miladimos/laravel-social
========================

a simple toolkit for social networks

0.7.1(10mo ago)95432MITPHPPHP &gt;=7.4|^8.0

Since Aug 17Pushed 9mo ago3 watchersCompare

[ Source](https://github.com/miladimos/laravel-social)[ Packagist](https://packagist.org/packages/miladimos/laravel-social)[ Docs](https://github.com/miladimos/laravel-social)[ Fund](https://idpay.ir/laravelir)[ RSS](/packages/miladimos-laravel-social/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (6)Used By (0)

[![Starts](https://camo.githubusercontent.com/354571049245cf98fcd411ad4d0610b457d2e39649e3727c49f34fccc525a573/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6d696c6164696d6f732f6c61726176656c2d736f6369616c3f7374796c653d666c6174266c6f676f3d676974687562)](https://github.com/miladimos/laravel-social/forks)[![Forks](https://camo.githubusercontent.com/7ae9401cce245d74c51da81586995f84a94523b423abdb812971e878185014b2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6d696c6164696d6f732f6c61726176656c2d736f6369616c3f7374796c653d666c6174266c6f676f3d676974687562)](https://github.com/miladimos/laravel-social/stargazers)

Laravel social package
======================

[](#laravel-social-package)

A toolkit package for social networks

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

[](#installation)

1. Run the command below to add this package:

```
composer require miladimos/laravel-social

```

2. Open your config/socials.php and add the following to the providers array:

```
Miladimos\Social\Providers\SocialServiceProvider::class,
```

3. Run the command below to install package:

```
php artisan social:install

```

4. Run the command below to migrate database:

```
php artisan migrate

```

Features
========

[](#features)

Follow/UnFollow
---------------

[](#followunfollow)

First add `Followable` trait to user model

```
namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Miladimos\Social\Traits\Follows\Followable;
use Illuminate\Database\Eloquent\Model;

class User extends Model
{
    use HasFactory,
        Followable;
}
```

and enable to you follow/unfollow feature:

```
namespace App\Http\Controller;

use App\Models\User;

class YourController extends Controller
{
    public function index()
    {
        $firstUser = User::first();
        $secondUser = User::find(2);

        $firstUser->follow($secondUser);
        $firstUser->unfollow($secondUser);
        $firstUser->toggleFollow($secondUser);

        $firstUser->followers;
        $firstUser->followings;
    }
}
```

Like
----

[](#like)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance56

Moderate activity, may be stable

Popularity25

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

Total

5

Last Release

306d ago

PHP version history (2 changes)v0.5.5PHP &gt;=7.4

0.6.3PHP &gt;=7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/ad21d122619aec18469a011bdeb0f7c7067401fc3d907679c55424eccc9e4e4f?d=identicon)[miladimos](/maintainers/miladimos)

---

Top Contributors

[![miladimos](https://avatars.githubusercontent.com/u/31257147?v=4)](https://github.com/miladimos "miladimos (61 commits)")

---

Tags

laravellaravel-bookmarklaravel-commentlaravel-commentablelaravel-commentslaravel-frameworklaravel-likelaravel-packagelaravel-rateablelaravel-sociallaravel-socialitelaravel-subscriptionlikeablesocial-mediasocial-networksocial-networkslaravellaravel-packagelaravel-packagessocial networksubscribelikelaravel-likeLaravel-Supportlaravel-followlaravel-social

### Embed Badge

![Health badge](/badges/miladimos-laravel-social/health.svg)

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

###  Alternatives

[rtconner/laravel-likeable

Trait for Laravel Eloquent models to allow easy implementation of a 'like' or 'favorite' or 'remember' feature.

394388.0k5](/packages/rtconner-laravel-likeable)[stevegrunwell/lost-in-translation

Uncover missing translations and localization strings in Laravel applications

3635.7k](/packages/stevegrunwell-lost-in-translation)[ashallendesign/laravel-mailboxlayer

A lightweight Laravel package for validating emails using the Mailbox Layer API.

762.0k](/packages/ashallendesign-laravel-mailboxlayer)

PHPackages © 2026

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