{"id":16772312,"url":"https://github.com/aerendir/phprivacy","last_synced_at":"2025-04-10T19:51:48.755Z","repository":{"id":94005326,"uuid":"123423329","full_name":"Aerendir/PHPrivacy","owner":"Aerendir","description":"A component to implement privacy by design in your PHP project.","archived":false,"fork":false,"pushed_at":"2021-10-14T10:59:43.000Z","size":16,"stargazers_count":19,"open_issues_count":2,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-24T17:50:15.778Z","etag":null,"topics":["php","php-library","privacy","symfony"],"latest_commit_sha":null,"homepage":null,"language":null,"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/Aerendir.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":"2018-03-01T11:01:27.000Z","updated_at":"2024-04-29T08:45:51.000Z","dependencies_parsed_at":"2023-03-13T17:08:31.271Z","dependency_job_id":null,"html_url":"https://github.com/Aerendir/PHPrivacy","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/Aerendir%2FPHPrivacy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aerendir%2FPHPrivacy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aerendir%2FPHPrivacy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aerendir%2FPHPrivacy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aerendir","download_url":"https://codeload.github.com/Aerendir/PHPrivacy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248283811,"owners_count":21077922,"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":["php","php-library","privacy","symfony"],"created_at":"2024-10-13T06:31:18.072Z","updated_at":"2025-04-10T19:51:48.747Z","avatar_url":"https://github.com/Aerendir.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP-Privacy\nA component to implement privacy by design in your PHP project.\n\nThis component follows a discussion on [Symfony](https://github.com/symfony/symfony) in [#26231](https://github.com/symfony/symfony/issues/26231).\n\nEU Law\n------\n\nTo ease the development consequences of the privacy regulations and directives, **we provide a condesed version of the GDPR regulation and of the Privacy Cookie Directive**.\n\nThose two documents are the same as the ones provided by the EU but without all the *legalese*.\n\nAlso if **they not make the law** (the Law always is the one you can find in the official documents of the EU), they are **useful tools to understand which are the implications** on our lives as developers and **on our apps as wrote following the \"Privacy by Design\" principles**.\n\nHere's the list of available documents:\n\n- [General Data Protection Regulation (GDPR)](EU-law/GDPR-for-devs.md).\n\n----------------------\n\nPRIVACY COMPONENT\n\n1. deve permettere di creare una pagina che elenca i servizi usati e i cookie che installano\n2. Da questa pagina deve essere possibile selezionare e deselezionare i servizi\n3. La scelta va memorizzata nel cookie\n4. Quando un utente accede alla pagina controllo se il cookie esiste: se non esiste, allora mostro l’informativa breve\n5. Quando clicca su accetto, creo il cookie e memorizzo l’accettazione.\n6. Posso decidere di abilitare o disabilitare tutti i cookie di default\n7. C’è un metodo ‘consentedTo()’ che permette di verificare se l’utente corrente ha acconsentito o meno\n\nOfficer = Workflow\nPolicyBuilder = DefinitionBuilder\nPolicy = Definition\nConsent = contiene i consensi dati dall’utente\n\nPolicyBuilder = new PolicyBuilder()\nPolicy = PolicyBuilder-\u003eaddConsentRequest(‘google_analytics’)\n-\u003eaddConsentRequest(‘facebook’)\n-\u003edrawUp(); (redigi)\n\nOfficer = new Officer(Policy, Consents)\nOfficer-\u003econsentedTo(‘google_analytics’)\nOfficer-\u003egetPolicy()\nOfficer-\u003egetConsents()\nOfficer-\u003egetWithholds()\nOfficer-\u003esetConsentTo(‘google_analytics)\nOfficer-\u003egetConsents() : Consents\n\nhttp://eur-lex.europa.eu/legal-content/EN/TXT/?uri=uriserv:OJ.L_.2016.119.01.0001.01.ENG\u0026toc=OJ:L:2016:119:FULL\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faerendir%2Fphprivacy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faerendir%2Fphprivacy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faerendir%2Fphprivacy/lists"}