Download the PHP package bishopb/laravel-forums without Composer

On this page you can find all versions of the php package bishopb/laravel-forums. 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 laravel-forums

Laravel Forums

A forums package for Laravel 4, built upon the Vanilla Forums engine.

You might want this package if:

  1. You need a first-class forums solution integrated into your Laravel app, and
  2. You are too busy or too lazy to write one yourself, and optionally
  3. You want to programatically create forum users, discussion boards, wall notices, etc.

Sound like what you need then? Then this is your package! We've packaged the excellent Vanilla Forums in a way that Laravel developers will love.

WARNING: This package is pre-alpha and under active development. Please report issues and look-out for BC breakage.

Requirements

You will need:

  1. Laravel 4.2
  2. MySQL 5

Installation

Edit your composer.json to include:

Run composer update bishopb/laravel-forums --no-dev.

Add the package service provider to your app/config/app.php:

Install the migrations: php artisan forum:migrate

Connect Vanilla and Laravel: php artisan forum:connect

Navigate to the /forum route. You should see a forum with no posts, logged in as "Anonymous". Click "New Discussion" to start a conversation. Congratulations, you now have a basic forum to which anyone can post messages.

The next step is to decide how your application users map into the forum. Read on.

Mapping application users to forum users

Your application has Users. So does Vanilla, the engine powering the forums. The two user sets are compatible, but maybe not a one-to-one mapping. Consequently, you need to explicitly define how the two map.

Laravel forums ships with three mapping strategies:

  1. One-to-one by primary key
  2. Synchronize the two on-demand
  3. Custom closure

One-to-one mapping by primary key

This is the default. The Vanilla user matches with the application user by primary key, so like "User.id == GDN_User.UserID". In this strategy, you must create, modify, and delete Vanilla users when you create, modify, or delete your application users. Code like this will get you started:

On-demand synchronization

This is the easiest to get going, but may not be efficient. This strategy either creates a new Vanilla user to match the application user, or updates the Vanilla user to reflect the current data in the application user. If there is no application user, optionally define a guest user.

Custom mapping

Just like it says: custom. You can totally do anything you want.

Views and themes

You can find all the views in the views/themes/default folder. Follow the instructions in views/themes/default/README.md to get started.

A word of note. These views are right out of Vanilla and are based on Smarty. It's not quite as easy as blade, but it's just as powerful.

Events

Vanilla emits events during its operation, and you can use these events to react or modify how Vanilla operates. To begin, read up on Vanilla Plugin development. Then, capture the events:

Troubleshooting

Things go wrong. There's at least a way to peek under the hood and see what the Vanilla engine is doing. Here you go:

Frequently Asked Questions

  1. What does this package provide? Simply, forum software for Laravel. Using the awesome Vanilla Forums engine, your Laravel application can now quickly and easily include discussion boards.
  2. Is it free? Yes, of course.
  3. Can it do ___? If the community edition of Vanilla Forums can do it, this package can do it, but might not currently do it.
  4. What "gaps" exist between this package and Vanilla Forums? This may not be a complete list: plugins.

All versions of laravel-forums with dependencies

PHP Build Version
Package Version
Requires bishopb/vanilla Version 2.2.3.6-patch1
laravel/framework Version ~4.2
watson/validating Version 0.10.*
felixkiss/uniquewith-validator Version 1.1.*
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 bishopb/laravel-forums contains the following files

Loading the files please wait ....