xlabs/trafficstarsbundle

流量明星包装包

安装: 254

依赖项: 1

建议者: 0

安全: 0

类型:symfony-bundle

1.0.1 2021-11-25 09:46 UTC

This package is auto-updated.

Last update: 2024-09-25 16:57:07 UTC


README

流量明星点击跟踪器。

安装

通过composer安装

php -d memory_limit=-1 composer.phar require xlabs/trafficstarsbundle

在你的AppKernel中

public function registerbundles()
{
    return [
    	...
    	...
    	new XLabs\TrafficStarsBundle\XLabsTrafficStarsBundle(),
    ];
}

配置示例

以下显示默认值

# app/config/config.yml

x_labs_traffic_stars:
    cookie_name: '_ts_click_id'
    tracked_urls: ['route_id_1', 'route_id_2', '.....', 'route_id_N'] # where the click id is created (from trafficstars)
    insert_urls: ['route_id_1', 'route_id_2', '.....', 'route_id_N'] # where the cookie will be created (where to append the click_id)

消费者

API调用流量明星是通过队列进行的

php bin/console xlabs:traffic_stars:notify