{"id":21373033,"url":"https://github.com/hiqdev/yii2-cookie-consent","last_synced_at":"2025-07-13T07:32:47.336Z","repository":{"id":53913190,"uuid":"105873448","full_name":"hiqdev/yii2-cookie-consent","owner":"hiqdev","description":"Yii2 Cookie Consent","archived":false,"fork":false,"pushed_at":"2021-07-09T15:22:28.000Z","size":20,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-13T14:15:37.873Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hiqdev.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}},"created_at":"2017-10-05T09:48:34.000Z","updated_at":"2021-07-09T15:22:31.000Z","dependencies_parsed_at":"2022-08-13T04:10:15.486Z","dependency_job_id":null,"html_url":"https://github.com/hiqdev/yii2-cookie-consent","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiqdev%2Fyii2-cookie-consent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiqdev%2Fyii2-cookie-consent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiqdev%2Fyii2-cookie-consent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiqdev%2Fyii2-cookie-consent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hiqdev","download_url":"https://codeload.github.com/hiqdev/yii2-cookie-consent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225865521,"owners_count":17536470,"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":["hacktoberfest"],"created_at":"2024-11-22T08:24:47.101Z","updated_at":"2024-11-22T08:24:47.726Z","avatar_url":"https://github.com/hiqdev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yii2 Cookie Consent\n\n[![Latest Stable Version](https://poser.pugx.org/hiqdev/yii2-cookie-consent/v/stable)](https://packagist.org/packages/hiqdev/yii2-cookie-consent)\n[![Total Downloads](https://poser.pugx.org/hiqdev/yii2-cookie-consent/downloads)](https://packagist.org/packages/hiqdev/yii2-cookie-consent)\n[![Build Status](https://img.shields.io/travis/hiqdev/yii2-cookie-consent.svg)](https://travis-ci.org/hiqdev/yii2-cookie-consent)\n[![Scrutinizer Code Coverage](https://img.shields.io/scrutinizer/coverage/g/hiqdev/yii2-cookie-consent.svg)](https://scrutinizer-ci.com/g/hiqdev/yii2-cookie-consent/)\n[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/hiqdev/yii2-cookie-consent.svg)](https://scrutinizer-ci.com/g/hiqdev/yii2-cookie-consent/)\n\nProvides really easy alerting users about the use of\ncookies on your site.\n\nCookie consent is required to comply with the [EU Cookie Law].\n\nAdditionally it detects if cookie is disabled in user's browser\nand redirects user to predefined page.\n\nWorks by adding Behavior to the Application View.\nBehavior listens to [EVENT_END_BODY] and echos the consent script.\n\n[EVENT_END_BODY]:   http://www.yiiframework.com/doc-2.0/yii-web-view.html#EVENT_END_BODY-detail\n[EU Cookie Law]:    http://ec.europa.eu/ipg/basics/legal/cookies/index_en.htm\n\n## Installation\n\nThe preferred way to install this yii2-extension is through [composer](http://getcomposer.org/download/).\n\nEither run\n\n```sh\nphp composer.phar require \"hiqdev/yii2-cookie-consent\"\n```\n\nor add\n\n```json\n\"hiqdev/yii2-cookie-consent\": \"*\"\n```\n\nto the require section of your composer.json.\n\n## Configuration\n\nThis extension is supposed to be used with [composer-config-plugin].\n\nElse look [src/config/web.php] for cofiguration example.\n\nAvailable configuration parameters:\n\n- `cookieConsent.disabled`\n- `cookieConsent.params`\n    - `message` - message to be shown\n    - `dismiss`\n    - `theme`\n    - `more`\n    - `moreLink`\n    - `failUrl` - url user will be redirected when cookies are disabled\n\nFor more details please see [src/config/params.php].\n\n[composer-config-plugin]:   https://github.com/hiqdev/composer-config-plugin\n[src/config/web.php]:       src/config/web.php\n[src/config/params.php]:    src/config/params.php\n\n## License\n\nThis project is released under the terms of the BSD-3-Clause [license](LICENSE).\nRead more [here](http://choosealicense.com/licenses/bsd-3-clause).\n\nCopyright © 2017, HiQDev (http://hiqdev.com/)\n\n## Acknowledgements\n\n- https://github.com/insites/cookieconsent\n- https://github.com/cinghie/yii2-cookie-consent\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiqdev%2Fyii2-cookie-consent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhiqdev%2Fyii2-cookie-consent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiqdev%2Fyii2-cookie-consent/lists"}