illibejiep/friendship-bundle

Friendship for symfony users

Installs: 45

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 1

Open Issues: 0

Type:symfony-bundle

v1.0.0 2015-08-13 06:28 UTC

This package is not auto-updated.

Last update: 2025-05-10 21:24:40 UTC


README

It provides simple relation functionality for symfony2 users.

Latest Stable Version Total Downloads Latest Unstable Version License

Installation

    composer require illibejiep/friendship-bundle dev-master

Then add in AppKernel.php

//...
    $bundles[] = new \FriendshipBundle\FriendshipBundle();

    return $bundles;
//...

Done.

Usage

In twig template:

//...
{% include 'FriendshipBundle:Widget:button.html.twig' with {fromUser: someUser, toUser: anotherUser} %}
//...

It will show friendship button for someUser to manage friendship with anotherUser.