Download the PHP package exs/lander-tracking-house-bundle without Composer

On this page you can find all versions of the php package exs/lander-tracking-house-bundle. 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 lander-tracking-house-bundle

EXS-LanderTrackingHouseBundle

Build Status

What is this bundle doing ?

This bundle searches for tracking parameters in the request.

Stores the tracking parameters in cookies.

And then add those tracking parameters to any url using Formatter services.

Installation

Download the bundle using composer

Enable the bundle

Configuration

The cmp, exid and visit parameters have a default value configurable with those configuration keys :

Usage

Use the appendTracking Twig filter on any url.

If the user have got the required tracking parameters, the tracking parameters will be added.

Use a specific formatter

Replace placeholders

Use getTracking('parameterName') Twig function to get any tracking parameter.

Builtin extractor

Builtin formatter

Adding an extracter

The bundle uses extracter services to find and get tracking parameters from the request, the cookies and/or define default value.

Those services have to implement EXS\LanderTrackingHouseBundle\Service\TrackingParameterManager\TrackingParameterQueryExtracterInterface and/or EXS\LanderTrackingHouseBundle\Service\TrackingParameterManager\TrackingParameterCookieExtracterInterface and/or EXS\LanderTrackingHouseBundle\Service\TrackingParameterManager\TrackingParameterInitializerInterface.

All those methods have to return a key/value array of tracking parameters found that will be saved in cookies.

Example :

1. Creating the extractor class for a new parameter foo

Important thing to notice here : All keys from the array returned by an extractFromQuery(), extractFromCookies() and initialise() will be stored as a cookie.

In the example ahead, a cookie named foo will be stored with the value found in query or in cookies or else will define the default value.

2. Declare the service with tag exs_tracking.parameter_extracter

In case many extracters have an initialise() method defined, we can specify a priority to know which default value to use (Higher value wins).

Adding a formatter

The bundle uses formatter services to get the parameters to append to an url.

Those services have to implements EXS\LanderTrackingHouseBundle\Service\TrackingParameterManager\TrackingParameterFormatterInterface.

They have to implement a format() method that will receive a ParameterBag containing all found tracking parameters from the request.

And it will need to return a key/value array of all formatted parameters to append to the url.

Those services also have to be tagged as exs_tracking.parameter_formatter.

See EXS\LanderTrackingHouseBundle\Service\TrackingParameterManager\CmpTrackingParameterFormatter for an example of formatter.

By convention formatter service's name is exs_tracking.xxxsomethingxxx_formatter.

Example :

1. Create the formatter class that implements EXS\LanderTrackingHouseBundle\Service\TrackingParameterManager\TrackingParameterFormatterInterface

2. Declare the service with tag exs_tracking.parameter_formatter

3. Usage

As seen before, je just now need to use the Twig filter appendParameter on any url and the foo parameter will be added if defined.


All versions of lander-tracking-house-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ~5.5|~7.0
symfony/framework-bundle Version ~2.8|~3.0
twig/twig Version ~1.23|~2.0
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 exs/lander-tracking-house-bundle contains the following files

Loading the files please wait ....