{"id":28387619,"url":"https://github.com/rectorphp/rector-php-parser","last_synced_at":"2025-06-26T20:31:56.583Z","repository":{"id":59529249,"uuid":"533308457","full_name":"rectorphp/rector-php-parser","owner":"rectorphp","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-22T16:06:31.000Z","size":22,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-31T00:52:01.858Z","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/rectorphp.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":"2022-09-06T12:16:33.000Z","updated_at":"2025-03-06T22:24:58.000Z","dependencies_parsed_at":"2023-02-18T08:45:43.794Z","dependency_job_id":null,"html_url":"https://github.com/rectorphp/rector-php-parser","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":0.2222222222222222,"last_synced_commit":"9639ef9429f74c14fdc3c7dad9d3b0d916663de0"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rectorphp/rector-php-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rectorphp%2Frector-php-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rectorphp%2Frector-php-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rectorphp%2Frector-php-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rectorphp%2Frector-php-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rectorphp","download_url":"https://codeload.github.com/rectorphp/rector-php-parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rectorphp%2Frector-php-parser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262139605,"owners_count":23265185,"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-05-30T18:38:10.627Z","updated_at":"2025-06-26T20:31:56.572Z","avatar_url":"https://github.com/rectorphp.png","language":"PHP","readme":"# Rector Rules for PHPParser\n\nSee available [PHPParser rules](/docs/rector_rules_overview.md)\n\n## Install\n\nYou can install this package with composer:\n\n```bash\ncomposer require rector/rector-php-parser:dev-main --dev\n```\n\n## Use Sets\n\nTo add a set to your config, use `Rector\\PhpParser\\Set\\PhpParserSetList` class and pick one of constants:\n\n```php\nuse Rector\\PhpParser\\Set\\PhpParserSetList;\nuse Rector\\Config\\RectorConfig;\n\nreturn static function (RectorConfig $rectorConfig): void {\n    $rectorConfig-\u003esets([\n        PhpParserSetList::PHP_PARSER_50\n    ]);\n};\n```\n\n\u003cbr\u003e\n\n## Learn Rector Faster\n\nRector is a tool that [we develop](https://getrector.org/) and share for free, so anyone can save hundreds of hours on refactoring. But not everyone has time to understand Rector and AST complexity. You have 2 ways to speed this process up:\n\n* read a book - \u003ca href=\"https://leanpub.com/rector-the-power-of-automated-refactoring\"\u003eThe Power of Automated Refactoring\u003c/a\u003e\n* hire our experienced team to \u003ca href=\"https://getrector.org/contact\"\u003eimprove your code base\u003c/a\u003e\n\nBoth ways support us to and improve Rector in sustainable way by learning from practical projects.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frectorphp%2Frector-php-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frectorphp%2Frector-php-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frectorphp%2Frector-php-parser/lists"}