{"id":50394674,"url":"https://github.com/php/docbook-cs","last_synced_at":"2026-05-30T20:03:41.967Z","repository":{"id":353405069,"uuid":"1201499145","full_name":"php/docbook-cs","owner":"php","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-30T20:37:41.000Z","size":495,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-30T00:32:39.342Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://php.github.io/docbook-cs/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/php.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-04T19:00:10.000Z","updated_at":"2026-05-27T16:41:14.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/php/docbook-cs","commit_stats":null,"previous_names":["jordikroon/docbook-cs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/php/docbook-cs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php%2Fdocbook-cs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php%2Fdocbook-cs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php%2Fdocbook-cs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php%2Fdocbook-cs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php","download_url":"https://codeload.github.com/php/docbook-cs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php%2Fdocbook-cs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33707335,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"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":"2026-05-30T20:03:41.423Z","updated_at":"2026-05-30T20:03:41.959Z","avatar_url":"https://github.com/php.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DocbookCS\n\nA static-analysis linter for DocBook XML files. It scans XML documentation sources and reports style and convention violations.\n\n**Full documentation:** [jordikroon.github.io/docbook-cs](https://jordikroon.github.io/docbook-cs)\n\n---\n\n## Contributing\n\n### Requirements\n\n- PHP 8.5+\n- Extensions: `dom`, `libxml`, `simplexml`\n\n### Setup\n\n```bash\ncomposer install\n```\n\n### Running checks\n\n```bash\n# Tests\nvendor/bin/phpunit\n\n# Static analysis\nvendor/bin/phpstan\n\n# Code style\nvendor/bin/phpcs\n```\n\n### Writing a sniff\n\nImplement `DocbookCS\\Sniff\\SniffInterface` (or extend `AbstractSniff`):\n\n```php\nnamespace Acme\\DocbookSniffs;\n\nuse DocbookCS\\Sniff\\AbstractSniff;\n\nfinal class MySniff extends AbstractSniff\n{\n    public function getCode(): string\n    {\n        return 'Acme.MySniff';\n    }\n\n    public function process(\\DOMDocument $document, string $content, string $filePath): array\n    {\n        $violations = [];\n        // ... inspect $document, add violations via $this-\u003ecreateViolation(...)\n        return $violations;\n    }\n}\n```\n\nRegister it in your config:\n\n```xml\n\u003csniff class=\"Acme\\DocbookSniffs\\MySniff\" /\u003e\n```\n\n## License\n\nApache 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp%2Fdocbook-cs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp%2Fdocbook-cs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp%2Fdocbook-cs/lists"}