{"id":28387604,"url":"https://github.com/rectorphp/rector-doctrine","last_synced_at":"2025-06-26T20:31:18.467Z","repository":{"id":37971892,"uuid":"350147612","full_name":"rectorphp/rector-doctrine","owner":"rectorphp","description":"Rector upgrade rules for Doctrine","archived":false,"fork":false,"pushed_at":"2025-06-10T15:58:48.000Z","size":1206,"stargazers_count":76,"open_issues_count":0,"forks_count":59,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-06-10T16:35:07.578Z","etag":null,"topics":["ast","doctrine","instant-upgrades","php","rector"],"latest_commit_sha":null,"homepage":"https://getrector.com/find-rule?activeRectorSetGroup=doctrine","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,"zenodo":null}},"created_at":"2021-03-21T23:34:46.000Z","updated_at":"2025-06-10T15:58:51.000Z","dependencies_parsed_at":"2023-12-31T17:28:45.966Z","dependency_job_id":"d2b0a2b8-105d-4990-b74a-92ab3cf16824","html_url":"https://github.com/rectorphp/rector-doctrine","commit_stats":{"total_commits":233,"total_committers":20,"mean_commits":11.65,"dds":"0.27896995708154504","last_synced_commit":"5fe59e9f3a2ef37bacca898a7a7dd438cc389626"},"previous_names":[],"tags_count":57,"template":false,"template_full_name":null,"purl":"pkg:github/rectorphp/rector-doctrine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rectorphp%2Frector-doctrine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rectorphp%2Frector-doctrine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rectorphp%2Frector-doctrine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rectorphp%2Frector-doctrine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rectorphp","download_url":"https://codeload.github.com/rectorphp/rector-doctrine/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rectorphp%2Frector-doctrine/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262139442,"owners_count":23265152,"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":["ast","doctrine","instant-upgrades","php","rector"],"created_at":"2025-05-30T18:38:09.964Z","updated_at":"2025-06-26T20:31:18.423Z","avatar_url":"https://github.com/rectorphp.png","language":"PHP","readme":"# Rector Rules for Doctrine\n\nSee available [Doctrine rules](https://getrector.com/find-rule?activeRectorSetGroup=doctrine)\n\n## Install\n\nThis package is already part of [rector/rector](http://github.com/rectorphp/rector) package, so it works out of the box.\n\nAll you need to do is install the main package, and you're good to go:\n\n```bash\ncomposer require rector/rector --dev\n```\n\n## Use Sets\n\nTo add a set to your config, use `-\u003ewithPreparedSets` method, and pick one of constants:\n\n```php\nuse Rector\\Config\\RectorConfig;\n\nreturn RectorConfig::configure()\n    -\u003ewithPreparedSets(doctrineCodeQuality: true)\n    -\u003ewithComposerBased(doctrine: true);\n```\n\nIf you're on PHP 7.x, you can use withSets() instead, for `doctrineCodeQuality` set, so you can define:\n\n```php\nuse Rector\\Config\\RectorConfig;\nuse Rector\\Doctrine\\Set\\DoctrineSetList;\n\nreturn RectorConfig::configure()\n    -\u003ewithSets([\n        DoctrineSetList::DOCTRINE_CODE_QUALITY,\n    ]);\n```\n\nSee [documentation](https://getrector.com/documentation) for more.\n\n\u003cbr\u003e\n\n## Learn Rector Faster\n\nRector is a tool that [we develop](https://getrector.com/) 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.com/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-doctrine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frectorphp%2Frector-doctrine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frectorphp%2Frector-doctrine/lists"}