emgiezet / admanager-bundle
Ad Manager Bundle
Installs: 26
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 4
Type:symfony-bundle
Requires
- php: >=5.3.2
- sonata-project/admin-bundle: dev-master
- sonata-project/media-bundle: dev-master
- symfony/symfony: 2.2.*
This package is auto-updated.
Last update: 2024-11-29 04:38:09 UTC
README
Introduction
This Symfony2 bundle offers a simple interface to manage website advertising.
Prerequisites
This version of the bundle requires Symfony 2.1+.
##Installation
Step 1: Download AdManagerBundle using composer
This library is available on Packagist.
Add the following to your composer.json
:
"require": { ... "pasinter/admanager-bundle": "dev-master", ... }
And run
$ php composer.phar install
Composer will install the bundle to your project's vendor/pasinter
directory.
Step 2: Enable the bundle
Add the bundle to app/AppKernel.php
:
public function registerBundles() { return array( ... new Pasinter\AdManagerBundle\PasinterAdManagerBundle(), ... ); }
Step 3: Configure dependencies
Install & configure SonataAdminBundle (https://github.com/sonata-project/SonataAdminBundle) and SonataMediaBundle (https://github.com/sonata-project/SonataMediaBundle)
Step 4: Update your database schema
$ php app/console doctrine:schema:update --force
Usage
Ad Management
Login to http://app.com/app_dev.php/admin
. Under "Ad Manager" you can manage Ads and Campaigns
Ads
An Ad has Link, Title and Image fields.
Campaigns
Campaigns have unique code that can be used to display them on frontend.