PHPackages                             skybluesofa/laravel-microblog - 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. skybluesofa/laravel-microblog

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

skybluesofa/laravel-microblog
=============================

This package creates the ability to create micro blog posts for Eloquent Users.

0.5.0(6y ago)217MITPHPPHP &gt;=7.1.0

Since Feb 17Pushed 3y ago2 watchersCompare

[ Source](https://github.com/skybluesofa/laravel-microblog)[ Packagist](https://packagist.org/packages/skybluesofa/laravel-microblog)[ RSS](/packages/skybluesofa-laravel-microblog/feed)WikiDiscussions master Synced yesterday

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

[![Build Status](https://camo.githubusercontent.com/4195c6f7d0b83ae253937a094a0348a72ff03b930164dead55cdb19fdbf850f1/68747470733a2f2f7472617669732d63692e6f72672f736b79626c7565736f66612f6c61726176656c2d6d6963726f626c6f672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/skybluesofa/laravel-microblog) [![Code Climate](https://camo.githubusercontent.com/501849cde3a6d43b9448500c4d02ae9455fd6e2b697a11c700d8b9474380a1bf/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f736b79626c7565736f66612f6c61726176656c2d6d6963726f626c6f672f6261646765732f6770612e737667)](https://codeclimate.com/github/skybluesofa/laravel-microblog) [![Test Coverage](https://camo.githubusercontent.com/e7cbba03934cc136491e5beb33b39f01a09b74b0a7cd75cbf9a522495447350d/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f736b79626c7565736f66612f6c61726176656c2d6d6963726f626c6f672f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/skybluesofa/laravel-microblog/coverage) [![Total Downloads](https://camo.githubusercontent.com/e24eeafd09828e0cc0800a990c5a17f53adf57dffbcd4adb135fbd9bae3e37f4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736b79626c7565736f66612f6c61726176656c2d6d6963726f626c6f672e7376673f7374796c653d666c6174)](https://packagist.org/packages/skybluesofa/laravel-microblog) [![Version](https://camo.githubusercontent.com/aebfc3b86c24d564c0cb1a30c4c6858cd13441ad2774637d9cbd79aa903534bd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736b79626c7565736f66612f6c61726176656c2d6d6963726f626c6f672e7376673f7374796c653d666c6174)](https://packagist.org/packages/skybluesofa/laravel-microblog) [![Software License](https://camo.githubusercontent.com/f251623e510f5909f16ae3f4e6e548dac11340b9fde1a99be26b015b39272c00/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c6174)](LICENSE)

Laravel 5 Microblog
===================

[](#laravel-5-microblog)

Create a microblogging platform (e.g., Twitter, Tumblr).

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

[](#installation)

First, install the package through Composer.

```
composer require skybluesofa/laravel-microblog
```

The service provider should be automatically installed on Laravel 5.5+. If you are running a lesser verion, then include the service provider inside `config/app.php`.

```
'providers' => [
    ...
    Skybluesofa\Microblog\ServiceProvider::class,
    ...
];
```

Publish config and migrations

```
php artisan vendor:publish --provider="Skybluesofa\Microblog\ServiceProvider"

```

Configure the published config in

```
config\microblog.php

```

Finally, migrate the database

```
php artisan migrate

```

Add Authorship to a User
------------------------

[](#add-authorship-to-a-user)

When a User is a MicroblogAuthor, they can create blog posts.

```
use Skybluesofa\Microblog\Model\Traits\MicroblogAuthor;
class User extends Model
{
    use MicroblogAuthor;
    ...
}
```

Add Blog Friends to a User
--------------------------

[](#add-blog-friends-to-a-user)

The getBlogFriends() method allows for limiting who can see a User's blog posts.

The Skybluesofa\\Microblog\\Model\\Traits\\MicroblogFriends Trait enforces that this method exists on the User model, but does not implement it. You'll need to do that however you see fit. Below is an example:

```
use Skybluesofa\Microblog\Model\Traits\MicroblogFriends;
class User extends Model
{
    use MicroblogFriends;

    ...
    public function getBlogFriends()
    {
        // Return null to get all users
        return null;

        // Return an array to get specific user ids
        // return [1,2,3];

        // Return an empty array to get no user ids (no one else)
        //return [];
    }
    ...
}
```

How to use
----------

[](#how-to-use)

[Check the Test file to see the package in action](https://github.com/skybluesofa/laravel-microblog/blob/master/tests/Unit/MicroblogPostBasicTest.php)

### Blog posts

[](#blog-posts)

#### Create a blog post

[](#create-a-blog-post)

The savePost() method will create the associated Journal model, if it doesn't exist for the User.

```
$post = new Post;
$post->content = 'This is the story of my life';
$user->savePost($post);
```

#### Delete a blog post

[](#delete-a-blog-post)

```
$post->delete();
```

#### Publish a blog post (move from draft to published status)

[](#publish-a-blog-post-move-from-draft-to-published-status)

```
$post->publish();
```

#### Unpublish a blog post (move from published to draft status)

[](#unpublish-a-blog-post-move-from-published-to-draft-status)

```
$post->unpublish();
```

#### Make a post visible to friends

[](#make-a-post-visible-to-friends)

```
$post->share();
```

or

```
$post->shareWithFriends();
```

#### Make a post visible to everyone who has the URL

[](#make-a-post-visible-to-everyone-who-has-the-url)

```
$post->shareWithEveryone();
```

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

[](#contributing)

See the [CONTRIBUTING](CONTRIBUTING.md) guide.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

2276d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/60324d72e7a3c7dea85699215cb194d3962647df1e860ae0ec1c6d53858e9a9b?d=identicon)[skybluesofa](/maintainers/skybluesofa)

---

Top Contributors

[![skybluesofa](https://avatars.githubusercontent.com/u/1657128?v=4)](https://github.com/skybluesofa "skybluesofa (23 commits)")

---

Tags

bloglaravel-packagemicroblogtumblr-liketwitter-likelaravelblogstatuspostsmicroblogeloqent

### Embed Badge

![Health badge](/badges/skybluesofa-laravel-microblog/health.svg)

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

###  Alternatives

[inspheric/nova-indicator-field

A Laravel Nova indicator field.

128966.2k1](/packages/inspheric-nova-indicator-field)[stephenjude/filament-blog

Filament Blog Builder

20317.8k](/packages/stephenjude-filament-blog)[wesselperik/nova-status-field

A Laravel Nova field for displaying statuses.

30213.5k](/packages/wesselperik-nova-status-field)[chocofamilyme/laravel-healthcheck

Serves functionality of healthchecks of your application

11105.9k](/packages/chocofamilyme-laravel-healthcheck)[bjuppa/laravel-blog

Add blog functionality to your Laravel project

483.3k2](/packages/bjuppa-laravel-blog)[tapp/filament-progress-bar-column

Add beautiful, color-coded progress bars to your Filament table columns. Perfect for inventory, tasks, storage, and any progress metrics without writing custom views.

124.5k](/packages/tapp-filament-progress-bar-column)

PHPackages © 2026

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