Download the PHP package snapshotpl/zf-snap-google-adsense without Composer

On this page you can find all versions of the php package snapshotpl/zf-snap-google-adsense. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package zf-snap-google-adsense

ZfSnapGoogleAdSense Build Status Scrutinizer Quality Score

Google AdSense view helper for Zend Framework 2

Module helps to manage yours AdSense units on page. Keep them all in one place and use renderers!

The simplest usage

Add ad unit (one or more) and publisher ID (you can find it here) to your config:

And then render ad in your view by view helper. You can use googleAdsense or adsense name:

That's all! In default adsense use asynchronous code. You can change it by using predefined view renderers.

How to install?

Via composer.json

Renderers

You can use renderes (by implements ZfSnapGoogleAdSense\View\Helper\Renderer\RendererInterface) to render your ads. In default module provides simple view renderer with very useful views:

To add own view to view render create view (in view you can use ad property which it's instance of \ZfSnapGoogleAdSense\Model\AdUnit by default) add it to view_manager with prefix zf-snap-google-adsense-renderer-view-*:

To change current view renderer pass view name to renderer option:

If you wrote your own renderer pass intance name from service_manager. You can also set custom parameters into view. To see how it works look into renderers array in config/module.config.php and view renderers source.

Options

ads defines ad units

enable if equals false, than disable ads on page.

publisher-id (required) publisher ID - you can find it here

unit-limit limits ads on page. Default values:


All versions of zf-snap-google-adsense with dependencies

PHP Build Version
Package Version
Requires zendframework/zendframework Version 2.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package snapshotpl/zf-snap-google-adsense contains the following files

Loading the files please wait ....