PHPackages                             fulgurio/social-network-bundle - 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. [Framework](/categories/framework)
4. /
5. fulgurio/social-network-bundle

ActiveSymfony-bundle[Framework](/categories/framework)

fulgurio/social-network-bundle
==============================

Symfony FulgurioSocialNetworkBundle

82076[1 issues](https://github.com/fulgurio/SocialNetworkBundle/issues)PHP

Since Aug 4Pushed 9y ago2 watchersCompare

[ Source](https://github.com/fulgurio/SocialNetworkBundle)[ Packagist](https://packagist.org/packages/fulgurio/social-network-bundle)[ RSS](/packages/fulgurio-social-network-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

Getting Started With FulgurioSocialNetworkBundle
================================================

[](#getting-started-with-fulguriosocialnetworkbundle)

The SocialNetworkBundle adds support to make a social network on your symfony 2 project.

Prerequisites
-------------

[](#prerequisites)

### Translations

[](#translations)

If you wish to use default texts provided in this bundle, you have to make sure you have translator enabled in your config.

```
# app/config/config.yml

framework:
    translator: ~
```

For more information about translations, check [Symfony documentation](http://symfony.com/doc/2.0/book/translation.html).

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

[](#installation)

The bundle uses [FOSUser](https://github.com/FriendsOfSymfony/FOSUserBundle). Configuration of this bundle is also included on this document.

Installation is a quick 3 step process:

1. Download FulgurioSocialNetworkBundle
2. Configure the Autoloader
3. Enable the Bundle
4. Configure your application's security.yml
5. Configure the FOSUserBundle
6. Configure the bundle
7. Import FulgurioSocialNetworkBundle routing
8. Update your database schema

### Step 1: Download FulgurioSocialNetworkBundle

[](#step-1-download-fulguriosocialnetworkbundle)

Ultimately, the FulgurioSocialNetworkBundle files should be downloaded to the `vendor/bundles/Fulgurio/SocialNetworkBundle` directory.

This can be done in several ways, depending on your preference. The first method is the standard Symfony2 method.

**Using the vendors script**

Add the following lines in your `deps` file:

```
[FOSUserBundle]
    git=git://github.com/FriendsOfSymfony/FOSUserBundle.git
    target=bundles/FOS/UserBundle
    version=1.2.0

[Stof-DoctrineExtensionsBundle]
    git=http://github.com/stof/StofDoctrineExtensionsBundle.git
    version=origin/1.0.x
    target=/bundles/Stof/DoctrineExtensionsBundle

[gedmo-doctrine-extensions]
    git=http://github.com/Atlantic18/DoctrineExtensions.git
    version=origin/2.2.x

[knp-components]
    git=http://github.com/KnpLabs/knp-components.git
    version=v1.1

[KnpPaginatorBundle]
    git=http://github.com/KnpLabs/KnpPaginatorBundle.git
    target=bundles/Knp/Bundle/PaginatorBundle
    version=v2.2

[FulgurioSocialNetworkBundle]
    git=git://github.com/Fulgurio/SocialNetworkBundle.git
    target=bundles/Fulgurio/SocialNetworkBundle
```

Now, run the vendors script to download the bundle:

```
$ php bin/vendors install
```

**Using submodules**

If you prefer instead to use git submodules, then run the following:

```
$ git submodule add git://github.com/FriendsOfSymfony/FOSUserBundle.git vendor/bundles/FOS/UserBundle
$ git submodule add git://github.com/stof/StofDoctrineExtensionsBundle.git vendor/bundles/Stof/DoctrineExtensionsBundle
$ git submodule add git://github.com/Atlantic18/DoctrineExtensions.git vendor
$ git submodule add git://github.com/KnpLabs/knp-components.git vendor
$ git submodule add git://github.com/KnpLabs/KnpPaginatorBundle.git vendor/bundles/Knp/Bundle/PaginatorBundle
$ git submodule add git://github.com/Fulgurio/SocialNetworkBundle.git vendor/bundles/Fulgurio/SocialNetworkBundle
$ git submodule update --init
```

### Step 2: Configure the Autoloader

[](#step-2-configure-the-autoloader)

Add the namespace to your autoloader:

```
