{"id":27158888,"url":"https://github.com/activecollab/etag","last_synced_at":"2025-04-08T22:39:19.335Z","repository":{"id":56940234,"uuid":"45825762","full_name":"activecollab/etag","owner":"activecollab","description":"Tag objects and collections using etag","archived":false,"fork":false,"pushed_at":"2024-03-09T08:29:42.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T13:03:28.383Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/activecollab.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":"2015-11-09T08:42:24.000Z","updated_at":"2024-03-09T08:27:01.000Z","dependencies_parsed_at":"2022-08-21T06:50:52.634Z","dependency_job_id":null,"html_url":"https://github.com/activecollab/etag","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activecollab%2Fetag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activecollab%2Fetag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activecollab%2Fetag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activecollab%2Fetag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/activecollab","download_url":"https://codeload.github.com/activecollab/etag/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247941718,"owners_count":21022035,"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":[],"created_at":"2025-04-08T22:39:18.700Z","updated_at":"2025-04-08T22:39:19.329Z","avatar_url":"https://github.com/activecollab.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Etag Interface\n\n[![Build Status](https://travis-ci.org/activecollab/etag.svg?branch=master)](https://travis-ci.org/activecollab/etag)\n\nTag objects and collections using etag, and validate cached values. This package contains only the interface, so actual implementation needs to be implemented in libraries that use it.\n\n`ActiveCollab\\Etag\\EtagInterface` Interface says it all:\n\n```php\n/**\n * @package ActiveCollab\\Etag\n */\ninterface EtagInterface\n{\n    /**\n     * Return true if this state of this object can be tagged and cached on client side.\n     *\n     * @return boolean\n     */\n    public function canBeEtagged();\n\n    /**\n     * Return etag.\n     *\n     * $visitor_identifier is a way that we identify a particular visitor (different people can use the same browsers\n     * under the same profile, and share the cache, so we need to address that).\n     *\n     * @param  string  $visitor_identifier\n     * @param  boolean $use_cache\n     * @return string\n     */\n    public function getEtag($visitor_identifier, $use_cache = true);\n\n    /**\n     * Check if provided etag value matches the current object state.\n     *\n     * $visitor_identifier is a way that we identify a particular visitor (different people can use the same browsers\n     * under the same profile, and share the cache, so we need to address that).\n     *\n     * @param  string  $value\n     * @param  string  $visitor_identifier\n     * @param  boolean $use_cache\n     * @return boolean\n     */\n    public function verifyEtag($value, $visitor_identifier, $use_cache = true);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factivecollab%2Fetag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factivecollab%2Fetag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factivecollab%2Fetag/lists"}