{"id":30307962,"url":"https://github.com/psalm/psalm-attributes","last_synced_at":"2025-09-02T14:42:13.705Z","repository":{"id":57045427,"uuid":"308539170","full_name":"psalm/psalm-attributes","owner":"psalm","description":"A repository for PHP 8 Attributes that you can use with Psalm","archived":false,"fork":false,"pushed_at":"2020-11-02T17:30:29.000Z","size":7,"stargazers_count":19,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-08-08T23:41:27.373Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/psalm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-30T06:00:52.000Z","updated_at":"2022-11-26T10:58:46.000Z","dependencies_parsed_at":"2022-08-24T03:40:14.070Z","dependency_job_id":null,"html_url":"https://github.com/psalm/psalm-attributes","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/psalm/psalm-attributes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psalm%2Fpsalm-attributes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psalm%2Fpsalm-attributes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psalm%2Fpsalm-attributes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psalm%2Fpsalm-attributes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/psalm","download_url":"https://codeload.github.com/psalm/psalm-attributes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psalm%2Fpsalm-attributes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270843582,"owners_count":24655420,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-08-17T11:51:58.429Z","updated_at":"2025-08-17T11:52:01.211Z","avatar_url":"https://github.com/psalm.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# psalm-attributes\n\nA repository for PHP 8 Attributes that you can use with Psalm.\n\n## Installation\n\nThe potential for PHP 8's runtime attribute reflection somewhere in your codebase makes this complicated.\n\nIf the following code exists your codebase:\n\n```php\nfunction getClassAttributes(string $className) {\n    foreach ((new ReflectionClass($className))-\u003egetAttributes() as $attr) {\n        $attr-\u003enewInstance();\n    }\n}\n```\n\n_And_ there’s a possibility it might load classes with these particular attributes then install with\n\n```\ncomposer require psalm/attributes:*\n```\n\nIf you’re not planning to use any runtime attribute reflection (and nobody might use it on your library/package classes) then it should be safe to install with\n\n```\ncomposer require --dev psalm/attributes\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsalm%2Fpsalm-attributes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsalm%2Fpsalm-attributes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsalm%2Fpsalm-attributes/lists"}