PHPackages                             jeroenherczeg/dog - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. jeroenherczeg/dog

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

jeroenherczeg/dog
=================

A User Follow Package for Laravel 5

0.0.3(9y ago)441MITPHPPHP &gt;=5.4

Since Aug 15Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jeroenherczeg/dog)[ Packagist](https://packagist.org/packages/jeroenherczeg/dog)[ Docs](https://github.com/jeroenherczeg/dog)[ RSS](/packages/jeroenherczeg-dog/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

A User Follow Package for Laravel 5
===================================

[](#a-user-follow-package-for-laravel-5)

[![Latest Version on Packagist](https://camo.githubusercontent.com/478d0cec77dfbdc19c3ea24dc31b8d298e29c51a22fd4b2e7f4cb719b078550a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a65726f656e686572637a65672f646f672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jeroenherczeg/dog)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/8c24ad6de6beffce67933f48adbc843a490d60a1cdceb7cf1174e5066826fa00/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6a65726f656e686572637a65672f646f672f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/jeroenherczeg/dog)[![Coverage Status](https://camo.githubusercontent.com/dd97985e0b1241aca3b2a0ef7033549765b9ff0d2b306faba49214f5ebbb06bb/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6a65726f656e686572637a65672f646f672e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/jeroenherczeg/dog/code-structure)[![Quality Score](https://camo.githubusercontent.com/ca129ca255e25f1f81596a9ea63d84f4c677660affd7c6f0fc899d02de28d9b9/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6a65726f656e686572637a65672f646f672e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/jeroenherczeg/dog)[![Total Downloads](https://camo.githubusercontent.com/efbb4164ea311ec5949ff2652df15fba60477b59f98a50ed85c6024ec741104c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a65726f656e686572637a65672f646f672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jeroenherczeg/dog)

Add a user following system like Twitter, Quora or any other social network that allows you to follow another user and have users follow you.

Install
-------

[](#install)

You can install the package via composer:

```
$ composer require jeroenherczeg/dog
```

Next, you must install the service provider:

```
// config/app.php
'providers' => [
    ...
    Jeroenherczeg\Dog\FollowServiceProvider::class,
];
```

You can publish the migration with:

```
php artisan vendor:publish --provider="Jeroenherczeg\Dog\FollowServiceProvider"
```

After the migration has been published you can create the `followers` table by running the migrations:

```
php artisan migrate
```

Add the followable trait to the User model

```
use Jeroenherczeg\Dog\Followable;

class User extends Model
{
    use Followable;
    ...
```

Usage
-----

[](#usage)

```
// Follow User
$user->follow(1)
$user->follow([1,2,3,4])

// Unfollow User
$user->unfollow(1)
$user->unfollow([1,2,3,4])

// Get Followers
$user->followers()

// Get Followings
$user->followings()

// Check if Follow
$user->isFollowing(1)

// Check if Followed By
$user->isFollowedBy(1)
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

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

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [Jeroen Herczeg](https://github.com/jeroenherczeg)
- Initialy forked from [Mohammed Isa](https://github.com/mohd-isa)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

Why Dog?
--------

[](#why-dog)

Your dog follows you because it's highly social - has a powerful emotional need for companionship - and knows that you are super-cool. You are the source of all good things in its life: food, walks, rides, treats, toys. Who knows what amazing thing will happen wherever you're going?

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.5% 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 ~7 days

Total

3

Last Release

3543d ago

PHP version history (2 changes)0.0.1PHP ~5.6|~7.0

0.0.2PHP &gt;=5.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/759412?v=4)[Jeroen Herczeg](/maintainers/jeroenherczeg)[@jeroenherczeg](https://github.com/jeroenherczeg)

---

Top Contributors

[![jeroenherczeg](https://avatars.githubusercontent.com/u/759412?v=4)](https://github.com/jeroenherczeg "jeroenherczeg (21 commits)")[![ArtyCake](https://avatars.githubusercontent.com/u/5197162?v=4)](https://github.com/ArtyCake "ArtyCake (1 commits)")

---

Tags

dogjeroenherczeg

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/jeroenherczeg-dog/health.svg)

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

###  Alternatives

[lab404/laravel-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users.

2.3k16.4M48](/packages/lab404-laravel-impersonate)[santigarcor/laratrust

This package provides a flexible way to add Role-based Permissions to Laravel

2.3k5.4M43](/packages/santigarcor-laratrust)[overtrue/laravel-follow

User follow unfollow system for Laravel.

1.2k404.7k5](/packages/overtrue-laravel-follow)[codegreencreative/laravel-samlidp

Make your PHP Laravel application an Identification Provider using SAML 2.0. This package allows you to implement your own Identification Provider (idP) using the SAML 2.0 standard to be used with supporting SAML 2.0 Service Providers (SP).

263763.5k1](/packages/codegreencreative-laravel-samlidp)

PHPackages © 2026

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