This Symfony2 bundle offers a simple interface to manage website advertising.
This version of the bundle requires Symfony 2.1+.
##Installation
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.
Add the bundle to app/AppKernel.php
:
public function registerBundles()
{
return array(
...
new Pasinter\AdManagerBundle\PasinterAdManagerBundle(),
...
);
}
Install & configure SonataAdminBundle (https://github.com/sonata-project/SonataAdminBundle) and SonataMediaBundle (https://github.com/sonata-project/SonataMediaBundle)
$ php app/console doctrine:schema:update --force
Login to http://app.com/app_dev.php/admin
. Under "Ad Manager" you can manage Ads and Campaigns
An Ad has Link, Title and Image fields.
Campaigns have unique code that can be used to display them on frontend.