{"id":15021930,"url":"https://github.com/adsazad/symfony-etagging","last_synced_at":"2026-02-04T21:35:20.785Z","repository":{"id":56953731,"uuid":"263283390","full_name":"adsazad/symfony-etagging","owner":"adsazad","description":"Etagging bundle for symfony to increase speed of your webpage ","archived":false,"fork":false,"pushed_at":"2023-02-01T20:00:13.000Z","size":58,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-23T05:42:37.161Z","etag":null,"topics":["cache","caching","etag","php","symfony","symfony-bundle"],"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/adsazad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-12T08:51:40.000Z","updated_at":"2020-06-14T17:30:00.000Z","dependencies_parsed_at":"2023-02-17T10:30:25.106Z","dependency_job_id":null,"html_url":"https://github.com/adsazad/symfony-etagging","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adsazad%2Fsymfony-etagging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adsazad%2Fsymfony-etagging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adsazad%2Fsymfony-etagging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adsazad%2Fsymfony-etagging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adsazad","download_url":"https://codeload.github.com/adsazad/symfony-etagging/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243918630,"owners_count":20368745,"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":["cache","caching","etag","php","symfony","symfony-bundle"],"created_at":"2024-09-24T19:57:13.953Z","updated_at":"2026-02-04T21:35:15.765Z","avatar_url":"https://github.com/adsazad.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Etagging Bundle For Symfony\n\n### Installation\n```\ncomposer require adsazad/symfony-etagging\n```\n\n# Usage\netagResponse() function will work on any symfony response.\n\n```php\n// Add at the top of class\nuse Adsazad\\SymfonyEtaggingBundle\\Util\\EtaggingInterface;\n```\n```php\n// Your action\npublic function myaction(Request $request, EtaggingInterface $etag){\n  $response = $this-\u003erender('mypage.twig',['parameters'=\u003e'p1']);\n\n// Return Etag Response\n  return $etag-\u003eetagResponse($response);\n}\n```\n\n### Add Custom Headers\nAdd This before Etag Response\n```php\n// Add Costum Headers\n  $ets-\u003eaddCustom($key, $value);\n```\n\n ## Set Max Age\n ```php\n // Set Max Age In Seconds (Default 1 Day)\n  $ets-\u003esetMaxAge(60*60*24); // 1 Day\n    \n// Set Max Age In Seconds (Default 1 Day)\n  $ets-\u003esetSharedMax(60*60*10); // 10 Hours\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadsazad%2Fsymfony-etagging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadsazad%2Fsymfony-etagging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadsazad%2Fsymfony-etagging/lists"}