{"id":17698537,"url":"https://github.com/tattali/utmcookiebundle","last_synced_at":"2025-10-15T01:54:24.023Z","repository":{"id":57065423,"uuid":"252469051","full_name":"tattali/UtmCookieBundle","owner":"tattali","description":"This bundle allow you to save utm parameters from url into a cookie when they exists. It's also provide a bunch of tools to easily retrive all or each utm.","archived":false,"fork":false,"pushed_at":"2025-02-26T08:57:51.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":6,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-13T04:09:01.636Z","etag":null,"topics":["composer","cookie","symfony","utm"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tattali.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-02T13:51:36.000Z","updated_at":"2025-02-26T08:54:12.000Z","dependencies_parsed_at":"2024-10-24T17:54:31.484Z","dependency_job_id":"8e33e25b-05f6-4db2-aa4c-12a1baea2a12","html_url":"https://github.com/tattali/UtmCookieBundle","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tattali%2FUtmCookieBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tattali%2FUtmCookieBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tattali%2FUtmCookieBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tattali%2FUtmCookieBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tattali","download_url":"https://codeload.github.com/tattali/UtmCookieBundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253870872,"owners_count":21976614,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer","cookie","symfony","utm"],"created_at":"2024-10-24T15:09:48.539Z","updated_at":"2025-10-15T01:54:18.999Z","avatar_url":"https://github.com/tattali.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"UtmCookieBundle\n===============\n\nThis bundle allow you to save utm parameters from url into a cookie when they exists. It's also provide a bunch of tools to easily retrive all or each utm.\n\n* Symfony 3.4+ or Symfony 4.0+ or Symfony 5.0+\n* PHP v7.1+\n\nDocumentation\n-------------\n\n### Installation\n\n```\n$ composer require tattali/utm-cookie-bundle\n```\n\n### Usage\n\n```php\n\u003c?php\n\nuse UtmCookieBundle\\UtmCookie\\UtmCookie;\n\nclass ExampleHandler\n{\n    private $utmCookie;\n\n    public function __construct(UtmCookie $utmCookie) {\n        $this-\u003eutmCookie = $utmCookie;\n    }\n\n    public function example()\n    {\n        $this-\u003eutmCookie-\u003eget(); // get all utm cookies as array\n    }\n}\n```\n\n#### Get all values as array\n```php\n$this-\u003eutmCookie-\u003eget();\n```\n\n#### Get each values\n```php\n$this-\u003eutmCookie-\u003eget('utm_campaign'); // or whithout 'utm_' prefix\n$this-\u003eutmCookie-\u003eget('utm_content');\n$this-\u003eutmCookie-\u003eget('utm_medium');\n$this-\u003eutmCookie-\u003eget('utm_source');\n$this-\u003eutmCookie-\u003eget('utm_term');\n```\n\n#### Initialize\nOnly if auto_init parameter is FALSE else it will be automatically initialized\n```php\n$this-\u003eutmCookie-\u003einit(); // Init and read utm params and cookie and save new values.\n```\n\n### Parameters (optional):\n\n```yaml\nutm_cookie:\n    auto_init: true   # Automaticaly run init when get method is called\n    domain: ''        # The (sub)domain that the cookie is available to, or '' to use current domain\n    httponly: false   # When TRUE the cookie will be made accessible only through the HTTP protocol\n    lifetime: 604800  # The lifetime of the cookie in seconds (default 604800 =\u003e 7 days)\n    name: 'utm'       # The name of the cookie (default value \"utm\")\n    overwrite: true   # If overwrite all utm values when even one is set in get\n    path: '/'         # The path on the server in which the cookie will be available on\n    secure: false     # Indicates that the cookie should only be transmitted over a secure HTTPS connection from the client\n```\n\n## License\n\nThis bundle is under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftattali%2Futmcookiebundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftattali%2Futmcookiebundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftattali%2Futmcookiebundle/lists"}