Download the PHP package tga/forum-bundle without Composer

On this page you can find all versions of the php package tga/forum-bundle. 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-bundle

TgaForumBundle

TgaForumBundle is a Symfony2 bundle aiming to synchronize Symfony2 with the forum software Vanilla 2.

Since it has been released, Symfony2 lacks of a complete, well-tested and powerful forum bundle. But why create a new system that already exists in PHP?

Vanilla is a modern, flexible, framework-based forum software providing a complete community platform. The aim of this bundle is to connect it to your Symfony application so you can use Vanilla as an extension of Symfony.

Installation

Note: This bundle synchronize Vanilla with Symfony, and not the contrary: Symfony is the master, Vanilla is the slave. It means you should redirect Vanilla subscription and login (with a simple server configuration for instance) to your Symfony one.

Note: The bundle will create a Vanilla user when a user unknown by Vanilla log into Symfony successfully. The created user will have the exact same username in Symfony and Vanilla (that's the matching field).

Install Vanilla

Install Vanilla in your public directory (web) by downloading it from the official website and by running it into your browser.

Once fully installed, install the bundle.

Install the Symfony bundle

1. Download it using Composer

composer require tga/forum-bundle

2. Register it

Edit your AppKernel.php file:

3. Configure it

Edit your config.yml file to register where is stored Vanilla:

4. Register the security handlers

Edit the security.yml configuration file to handle the login/logout successes:

4. And you are done

Now, every user connecting/disconnecting throw Symfony should be also connected/disconnected in Vanilla.

Note: If you have errors with Doctrine not able to update the schema because of Vanilla tables, you can use the tables filter in the Doctrine configuration:

The user transformers

The bundle use the concept of UserTransformer to build Vanilla users from Symfony security token. It's an optionnal process you can do if you want to customize the Vanilla users created by the bundle. Declaring your own transformer, you can choose the inserted data.

Use the default transformer or the FOSUserBundle transformer

By default, the bundle provide two transformers:

- the default transformer: `tga_forum.default_user_transformer`
- the FOSUserBundle transformer for FOS users: `tga_forum.fos_user_transformer`

See Use a transformer to use them.

Create a custom transformer

User transformers must implements interface Tga\ForumBundle\Transformer\UserTransformerInterface. You can use the DefaultUserTransformer to start your own:

The method createVanillaUser() is called by the login success handler to transform a Symfony user in a Vanilla one.

Use a transformer

Declare it as a service and register it in the bundle configuration:

Note : if you don't specify user_transformer key, the default transformer will be used.

How does it work? The Vanilla Kernel

The Vanilla kernel is a service (tga_forum.vanilla) able to boot Vanilla in the current context of Symfony. Once booted, all the feaures from Vanilla are available in Symfony.

Using the kernel, you have access to two methods : getUserManager and getSessionManager, managing the users and the sessions.

For instance, the AuthenticationSuccessHandler (connect the users into Vanilla when they connect in Symfony) uses the Kernel and the managers :


All versions of forum-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.2
symfony/framework-bundle Version ~2.1
symfony/security-bundle Version ~2.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 tga/forum-bundle contains the following files

Loading the files please wait ....