2017 © Pedro Peláez
 

symfony-bundle symfony-user-referer-bundle

Symfony 2 User referer bundle

image

virmyt/symfony-user-referer-bundle

Symfony 2 User referer bundle

  • Sunday, December 28, 2014
  • by Virmyt
  • Repository
  • 1 Watchers
  • 0 Stars
  • 81 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

SymfonyUserReferer

This package contains a bundle to easily save information about referal users that came to your web-site All users that registrate on web-site, and come to it with containing GET argument "ref" (http://site.com/downloads?ref=hfkjgv), will be saved with additional information: ref, ip, referer, date, (*1)

Installation

Add SymfonyUserReferer in your composer.json:, (*2)

{
    "require": {
        "virmyt/symfony-user-referer-bundle": "dev-master"
    }
}

Add in AppKernel.php: ``` php $bundles = array( ... new \Virmyt\UserRefererBundle\VirmytUserRefererBundle(), );, (*3)


Configure entity mapping to your User Entity: ``` yaml doctrine: ... orm: ... resolve_target_entities: Virmyt\UserRefererBundle\Model\ReferrerInterface: App\MainBundle\Entity\User

where App\MainBundle\Entity\User - should be your User Entity., (*4)

And it MUST implement Virmyt\UserRefererBundle\Model\ReferrerInterface ``` php <?php use Virmyt\UserRefererBundle\Model\ReferrerInterface; class User implements ReferrerInterface { public function getRef() { return $this->ref; // For examle } ..., (*5)


Update DB schema: ``` bash php app/console doctrine:schema:update --dump-sql -v --force

Usage:

All Referal data about user will be saved in single table users_referral that have relation to your UserEntity., (*6)

The Versions

28/12 2014

dev-master

9999999-dev

Symfony 2 User referer bundle

  Sources   Download

MIT

The Requires

 

referer referal

28/12 2014

dev-G-698

dev-G-698

Symfony 2 User referer bundle

  Sources   Download

MIT

The Requires

 

referer referal

20/12 2014

dev-dev

dev-dev

Symfony 2 User referer bundle

  Sources   Download

MIT

The Requires

 

referer referal

20/12 2014

1.0.0

1.0.0.0

Symfony 2 User referer bundle

  Sources   Download

MIT

The Requires

 

referer referal