michele-angioni/message-board

A message board package for Laravel.
684 14
Install
composer require michele-angioni/message-board
Latest Version:v2.0.2
PHP:>=5.5.9
Laravel:5
Older releases:4
License:MIT
Last Updated:Jan 14, 2017
Links: GitHub  ·  Packagist
Maintainer: Michele

MESSAGE BOARD

License Latest Stable Version Build Status SensioLabsInsight

Message Board is a Laravel 5 package which assigns a message board to each User, where posts and comments can be posted.

Bans and a permission system are provided out of the box. Social features such as "likes" are included as well.

The package comes bundled with a highly customizable full featured API, which needs to be enabled in the config file, to let your application use Message Board through asynchronous calls without having to write your own API.

Documentation

Check our wiki for full documentation.

Quick examples

Retrieve a User Posts

MessageBoard::getOrderedUserPosts($user);

Create a new Post

public function store(Request $request)
{
	[...]
	
	$user = User::findOrFail($request->get('id_user'));
	
	MessageBoard::createPost($user, Auth::user(), null, $text);

	[...]				
}

Create a Like

public function postLikeStore($idPost, Request $request)
{
	[...]
	
	MessageBoard::createLike(Auth::user()->getKey(), $idPost, 'post');

	[...]				
}

Ban a User

public function banUser($idUser, Request $request)
{
	[...]
	
	$user = User::findOrFail($idUser);
	
	MessageBoard::banUser($user, $request->get('days'), $request->get('reason'));
	
	[...]
}

Read all User Notifications

public function readNotifications()
{
	$user = Auth::user();
	
	$user->readAllNotifications();				
}

Contribution guidelines

Support follows PSR-1 and PSR-4 PHP coding standards, and semantic versioning.

Please report any issue you find in the issues page.

Use development branch for pull requests.

License

Message Board is free software distributed under the terms of the MIT license.

Related Packages

fenos/notifynder

Management system of internal notifications for Laravel 5.*

207,579 423
carropublic/notifications

A collections of notification channels and senders

47,966 0
hugostech/notifynder

Management system of internal notifications for Laravel 10 / 11 / 12 / 13.

4,180 0
difftechnology/notifynder

Management system of internal notifications for Laravel 5.*

32 0
jmpatricio/notifications

Notifications package for Laravel

4 1

Version History

Version Released PHP Laravel License
v2.0.2 >=5.5.9 ~5.1 MIT
v2.0.1 >=5.5.9 ~5.1 MIT
v2.0 >=5.5.9 ~5.1 MIT
v1.1.1 >=5.5.9 ~5.0 MIT
v1.1 >=5.5.9 ~5.0 MIT