Download the PHP package socieboy/forum without Composer

On this page you can find all versions of the php package socieboy/forum. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package forum

No taking care of this package anymore.

Socieboy Forum

Package for Laravel 5.2

Total Downloads Latest Stable Version Latest Unstable Version License

Features

Installation

1.- Add to composer.json file the package

2.- After installing this package, you have to set the service provider on your config/app.php file

3.- Publish the forum config file on your config folder and publish the default template to your resources/assets/less/ folder, hit the follow command.

4.- Create migrations for the forum, make sure you have a migration already created for users. (Before to do this step, you may want to add a prefix to your forum database tables, see the config file)

This command will create the migration files, for conversations, replies, and like_replies. Then just execute your migration:

Configuration

General

The forum provides a simple custom template, this is published on the resources/assets directory, feel free to edit.

On the config/forum.php file, set the right information of your app.

Template

This is the master template view of your project:

The key content is the name of your yield tag on your master template file where you would like to display the forum:

With those values the forum can be adapted to your project really easily and match your application design.

Topics

Define the array of topics for your forum. Now you can define the key for the topic, give a name and the representative icon for the topic, you can use any font class of your preference here. Also you can set the representative color for this topic in the las parameter (color is optional).

Database

Customize your own prefix for the forum database tables.

User settings

The user configuration with the forum includes.

The model key, set the namespace + class name of your users model. By default is App\User as Laravel uses.

The username key is the field on your users table that would be used to display the name of the user who post a conversation/reply. You can set any field like email, username, full_name, name, etc, (Must be a field on your users table).

Do you have avatars for the users on your project? (Set the key avatar to true if you want to use avatars).

If you prefer to use gravatar for your avatars set the key gravatar to true.

If you want to use your own avatars, then define the field on your users table where the url to the image (avatar) is stored.

Include link to profile users.

By default the forum include a simple user profile. If you want to implement your own just set the route name on this key, the route should receive one parameter as slug.

Specify the column of the users table that will be used as slug, by default the forum use the user id.

Now if the user is not log in, the button for start a conversation will redirect the user to your login page, just set the url of your login page in this key.

If you want you can change the icons to do like and choose the best answer on replies.

Emails

On the array emails are 4 different values.

The key fire is set by the default false, no email would be fired when someone left a reply. Change to true if you want to implement fire emails to the conversation owner when some user left a reply.

The from key is the email of the admin of your app or whatever account that would be used to send the emails.

The from-name key is the real name of the administrator of the forum or who is going to send the emails.

Finally just set the subject for the emails fired.

Events

When some user left a reply on the conversation, starts a new conversation or marks a reply as the best answer, an event will fire and broadcast depending on your settings..

The key fire is set by the default true. As long as it is true, an event will be fired for new replies, new conversations and choosing a best answer.

Set the key broadcast to true on the forum config file and also add your Pusher keys to the broadcasting config file of Laravel. Once set to true, the events will also send out broadcasts that you can pick up. https://pusher.com/

Also on the bottom of you app or where your scripts section is located add this code.

Now that's it, easy and you are ready to go!

Translations

If you want to contribute in this package with your native language copy the folder src/Lang/en/ translate all keys to your language and send a pull request.


All versions of forum with dependencies

PHP Build Version
Package Version
Requires league/commonmark Version ~0.8
easy-slug/easy-slug Version ~2.0
pusher/pusher-php-server Version ~2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package socieboy/forum contains the following files

Loading the files please wait ....