Download the PHP package adback/adback-sdk-php-symfony without Composer

On this page you can find all versions of the php package adback/adback-sdk-php-symfony. 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 adback-sdk-php-symfony

Adback/ApiClientBundle

Scrutinizer Code Quality Code Coverage Latest Stable Version Total Downloads License

This bundle will use the library to call the AdBack api.

See the AdBack website for more informations.

Installation

Launch the composer command :

If you are using a version of symfony >= 4, it should automatically activate the bundle.

If you are using a version of symfony < 4, you have to add the bundle to your AppKernel.php file :

Configuration

Symfony 4

In your .env file, the following lines should have been added :

Modify it with the token provided by the AdBack team.

Then follow the paragraph linked to the type of cache you have choosen :

Redis

In the config/packages/adback_sdk_php.yaml you should add the following configuration :

redis_service is the name of the redis connection you are using to store the data.

Doctrine

In the config/packages/adback_sdk_php.yaml you should add the following configuration :

doctrine.orm.entity_manager is the name of the doctrine connection you are using to store the data.

Do not forget to create the table linked to the AdBack sdk.

Custom

If you want to write your own cache driver, you should create a class that implements Adback\ApiClient\Driver\ScriptCacheInterface and name this service adback_api_client.script_cache.

In the config/packages/adback_sdk_php.yaml you should add the following configuration :

If the service is missing, an error will be issued by the Symfony DIC when the service is being used.

Symfony < 4

In your app/config/config.yml file, you should add the following lines :

Modify it with the token provided by the AdBack team.

Then follow the paragraph linked to the type of cache you have choosen :

Redis

In the app/config/config.yml you should add the following configuration :

redis_service is the name of the redis connection you are using to store the data.

Doctrine

In the app/config/config.yml you should add the following configuration :

doctrine.orm.entity_manager is the name of the doctrine connection you are using to store the data.

Do not forget to create the table linked to the AdBack sdk.

Custom

If you want to write your own cache driver, you should create a class that implements Adback\ApiClient\Driver\ScriptCacheInterface and name this service adback_api_client.script_cache.

In the app/config/config.yml you should add the following configuration :

If the service is missing, an error will be issued by the Symfony DIC when the service is being used

Script Type

There is two possibilities for the script you could get.

Small scripts

This configuration will only load the AdBack script from an external url.

This usage is good for a quick start.

Full scripts

This configuration will load our full script or bootscrap script.

This will allow us to deliver a script which is more flexible when the blocking in place are harder.

This solution is recommanded for an advanced usage.

Usage

Refresh command

In order to have the AdBack script always up-to-date you should launch the command adback:api-client:refresh-tag periodically (at least once a day).

This command will call our api and store the response in the cache type you have chosen

Add the script to your pages

At the bottom of your webpages, you should add the script twig generation function :

Full configuration description


All versions of adback-sdk-php-symfony with dependencies

PHP Build Version
Package Version
Requires symfony/framework-bundle Version ~2.3|~3.0|^4.0
adback/adback-sdk-php Version ~2.5
twig/twig Version *
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 adback/adback-sdk-php-symfony contains the following files

Loading the files please wait ....