{"id":36992841,"url":"https://github.com/eser/scabbia2-scanners","last_synced_at":"2026-01-13T23:44:59.919Z","repository":{"id":56979261,"uuid":"42554527","full_name":"eser/scabbia2-scanners","owner":"eser","description":"Scabbia2 Scanners Component","archived":true,"fork":false,"pushed_at":"2016-01-03T14:55:49.000Z","size":15,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-27T14:56:37.933Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eser.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-09-16T00:17:29.000Z","updated_at":"2023-08-22T18:28:23.000Z","dependencies_parsed_at":"2022-08-21T11:20:58.980Z","dependency_job_id":null,"html_url":"https://github.com/eser/scabbia2-scanners","commit_stats":null,"previous_names":["eser/scabbia2-scanners","eserozvataf/scabbia2-scanners"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/eser/scabbia2-scanners","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eser%2Fscabbia2-scanners","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eser%2Fscabbia2-scanners/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eser%2Fscabbia2-scanners/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eser%2Fscabbia2-scanners/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eser","download_url":"https://codeload.github.com/eser/scabbia2-scanners/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eser%2Fscabbia2-scanners/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28405262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"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":[],"created_at":"2026-01-13T23:44:59.859Z","updated_at":"2026-01-13T23:44:59.909Z","avatar_url":"https://github.com/eser.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scabbia2 Scanners Component\n\n[This component](https://github.com/eserozvataf/scabbia2-scanners) scans the source directories and compiles some information. It is basically designed for extracting annotations from docblocks but functionality can be extended by implementing `Scabbia\\Scanners\\ScannerInterface`.\n\n[![Build Status](https://travis-ci.org/eserozvataf/scabbia2-scanners.png?branch=master)](https://travis-ci.org/eserozvataf/scabbia2-scanners)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/eserozvataf/scabbia2-scanners/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/eserozvataf/scabbia2-scanners/?branch=master)\n[![Total Downloads](https://poser.pugx.org/eserozvataf/scabbia2-scanners/downloads.png)](https://packagist.org/packages/eserozvataf/scabbia2-scanners)\n[![Latest Stable Version](https://poser.pugx.org/eserozvataf/scabbia2-scanners/v/stable)](https://packagist.org/packages/eserozvataf/scabbia2-scanners)\n[![Latest Unstable Version](https://poser.pugx.org/eserozvataf/scabbia2-scanners/v/unstable)](https://packagist.org/packages/eserozvataf/scabbia2-scanners)\n[![Documentation Status](https://readthedocs.org/projects/scabbia2-documentation/badge/?version=latest)](https://readthedocs.org/projects/scabbia2-documentation)\n\n## Usage\n\n### Extracting Annotations from Source Folder\n\n```php\nuse Scabbia\\Scanners\\Scanners;\nuse Scabbia\\Scanners\\AnnotationScanner;\n\n$annotationScanner = new AnnotationScanner();\n\n$scanners = new Scanners();\n$scanners-\u003eregister($annotationScanner);\n$scanners-\u003eprocessFolder('src/');\n\nvar_dump($annotationScanner-\u003eresult);\n```\n\n### Custom Scanner\n\n```php\nuse Scabbia\\Scanners\\Scanners;\nuse Scabbia\\Scanners\\ScannerInterface;\nuse Scabbia\\Scanners\\TokenStream;\nuse ReflectionClass;\n\n$customScanner = new class () implements ScannerInterface {\n    public function processFile($file, $fileContents) {\n        echo 'processing file ', $file;\n    }\n\n    public function processTokenStream(TokenStream $tokenStream) {\n    }\n\n    public function processClass($class, ReflectionClass $reflection) {\n        echo 'processing class ', $class;\n    }\n\n    public function finalize() {\n        echo 'done.';\n    }\n};\n\n$scanners = new Scanners();\n$scanners-\u003eregister($customScanner);\n$scanners-\u003eprocessFolder('src/');\n```\n\n## Links\n- [List of All Scabbia2 Components](https://github.com/eserozvataf/scabbia2)\n- [Documentation](https://readthedocs.org/projects/scabbia2-documentation)\n- [Twitter](https://twitter.com/eserozvataf)\n- [Contributor List](contributors.md)\n- [License Information](LICENSE)\n\n\n## Contributing\nIt is publicly open for any contribution. Bugfixes, new features and extra modules are welcome. All contributions should be filed on the [eserozvataf/scabbia2-scanners](https://github.com/eserozvataf/scabbia2-scanners) repository.\n\n* To contribute to code: Fork the repo, push your changes to your fork, and submit a pull request.\n* To report a bug: If something does not work, please report it using GitHub issues.\n* To support: [![Donate](https://img.shields.io/gratipay/eserozvataf.svg)](https://gratipay.com/eserozvataf/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feser%2Fscabbia2-scanners","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feser%2Fscabbia2-scanners","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feser%2Fscabbia2-scanners/lists"}