{"id":27099785,"url":"https://github.com/pedro-mendonca/glotpress-stubs","last_synced_at":"2026-04-28T01:32:13.793Z","repository":{"id":56899988,"uuid":"438928022","full_name":"pedro-mendonca/glotpress-stubs","owner":"pedro-mendonca","description":"@GlotPress function and class declaration stubs for static analysis. ","archived":false,"fork":false,"pushed_at":"2025-10-15T16:14:36.000Z","size":478,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-16T11:30:36.206Z","etag":null,"topics":["glotpress","phpstan","static-analysis","stubs","wordpress"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/pedro-mendonca/glotpress-stubs","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/pedro-mendonca.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":"2021-12-16T09:14:48.000Z","updated_at":"2025-10-15T16:14:39.000Z","dependencies_parsed_at":"2025-04-06T12:51:05.023Z","dependency_job_id":"88846e1d-4359-4aed-8ade-903584323bd7","html_url":"https://github.com/pedro-mendonca/glotpress-stubs","commit_stats":{"total_commits":31,"total_committers":1,"mean_commits":31.0,"dds":0.0,"last_synced_commit":"4fb6444dd1f1f508ee50304a7998c7c029739f77"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/pedro-mendonca/glotpress-stubs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedro-mendonca%2Fglotpress-stubs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedro-mendonca%2Fglotpress-stubs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedro-mendonca%2Fglotpress-stubs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedro-mendonca%2Fglotpress-stubs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pedro-mendonca","download_url":"https://codeload.github.com/pedro-mendonca/glotpress-stubs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedro-mendonca%2Fglotpress-stubs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32362781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["glotpress","phpstan","static-analysis","stubs","wordpress"],"created_at":"2025-04-06T12:50:50.980Z","updated_at":"2026-04-28T01:32:13.788Z","avatar_url":"https://github.com/pedro-mendonca.png","language":"PHP","funding_links":["https://github.com/sponsors/pedro-mendonca"],"categories":[],"sub_categories":[],"readme":"# GlotPress Stubs\n\nGlotPress function and class declaration stubs for static analysis.\n\n[![Packagist version](https://img.shields.io/packagist/v/pedro-mendonca/glotpress-stubs?include_prereleases\u0026label=Packagist)](https://packagist.org/packages/pedro-mendonca/glotpress-stubs)\n[![Packagist stats](https://img.shields.io/packagist/dt/pedro-mendonca/glotpress-stubs?label=Downloads)](https://packagist.org/packages/pedro-mendonca/glotpress-stubs/stats)\n[![License](https://img.shields.io/github/license/pedro-mendonca/glotpress-stubs?label=License)](https://github.com/pedro-mendonca/glotpress-stubs/blob/main/LICENSE)\n[![Sponsor](https://img.shields.io/badge/GitHub-🤍%20Sponsor-ea4aaa?logo=github)](https://github.com/sponsors/pedro-mendonca)\n\nThis package provides stub declarations for [GlotPress](https://glotpress.blog) functions, classes and interfaces.  \nThese stubs can help plugin and theme developers leverage static analysis tools like [PHPStan](https://github.com/phpstan/phpstan), which are unable to parse GlotPress as it is not clean OOP code.  \n\nStubs are generated directly from the [source](https://github.com/GlotPress/GlotPress-WP) using [php-stubs/generator](https://github.com/php-stubs/generator).\n\n### Requirements\n\n- PHP ^7.3 or ^8.0\n\n### Installation\n\nRequire this package as a development dependency with [Composer](https://getcomposer.org).\n\n```bash\ncomposer require --dev pedro-mendonca/glotpress-stubs\n```\n\nAlternatively you may download `glotpress-stubs.php` directly.\n\n### Usage in PHPStan\n\nInclude all stubs in PHPStan configuration file.  \nYou can remove the `# WordPress Stubs` lines if you already use [WordPress extensions for PHPStan](https://github.com/szepeviktor/phpstan-wordpress).  \n\n```yaml\nparameters:\n    scanFiles:\n        # WordPress Stubs\n        - %rootDir%/../../php-stubs/wordpress-stubs/wordpress-stubs.php\n        # GlotPress Stubs\n        - %rootDir%/../../pedro-mendonca/glotpress-stubs/glotpress-stubs.php\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedro-mendonca%2Fglotpress-stubs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpedro-mendonca%2Fglotpress-stubs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedro-mendonca%2Fglotpress-stubs/lists"}