{"id":16953887,"url":"https://github.com/eliashaeussler/rector-config","last_synced_at":"2025-08-17T01:32:18.808Z","repository":{"id":131434731,"uuid":"611605876","full_name":"eliashaeussler/rector-config","owner":"eliashaeussler","description":"🏡 My personal configuration for Rector","archived":false,"fork":false,"pushed_at":"2025-08-06T05:04:50.000Z","size":1095,"stargazers_count":3,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-06T07:06:02.772Z","etag":null,"topics":["config","rector"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eliashaeussler.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["eliashaeussler"],"custom":["https://paypal.me/eliashaeussler"]}},"created_at":"2023-03-09T07:00:39.000Z","updated_at":"2025-08-06T05:01:22.000Z","dependencies_parsed_at":"2023-10-28T04:24:32.337Z","dependency_job_id":"7bd3a892-b456-4774-bc45-b493fe60c952","html_url":"https://github.com/eliashaeussler/rector-config","commit_stats":{"total_commits":28,"total_committers":3,"mean_commits":9.333333333333334,"dds":0.25,"last_synced_commit":"7a5bff7d8a8ddfe7b9a132ebf27fea12edf44512"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/eliashaeussler/rector-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliashaeussler%2Frector-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliashaeussler%2Frector-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliashaeussler%2Frector-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliashaeussler%2Frector-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eliashaeussler","download_url":"https://codeload.github.com/eliashaeussler/rector-config/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliashaeussler%2Frector-config/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270796229,"owners_count":24647320,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"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":["config","rector"],"created_at":"2024-10-13T22:08:14.584Z","updated_at":"2025-08-17T01:32:18.762Z","avatar_url":"https://github.com/eliashaeussler.png","language":"PHP","funding_links":["https://github.com/sponsors/eliashaeussler","https://paypal.me/eliashaeussler"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Rector config\n\n[![Coverage](https://img.shields.io/coverallsCoverage/github/eliashaeussler/rector-config?logo=coveralls)](https://coveralls.io/github/eliashaeussler/rector-config)\n[![Maintainability](https://img.shields.io/codeclimate/maintainability/eliashaeussler/rector-config?logo=codeclimate)](https://codeclimate.com/github/eliashaeussler/rector-config/maintainability)\n[![CGL](https://img.shields.io/github/actions/workflow/status/eliashaeussler/rector-config/cgl.yaml?label=cgl\u0026logo=github)](https://github.com/eliashaeussler/rector-config/actions/workflows/cgl.yaml)\n[![Tests](https://img.shields.io/github/actions/workflow/status/eliashaeussler/rector-config/tests.yaml?label=tests\u0026logo=github)](https://github.com/eliashaeussler/rector-config/actions/workflows/tests.yaml)\n[![Supported PHP Versions](https://img.shields.io/packagist/dependency-v/eliashaeussler/rector-config/php?logo=php)](https://packagist.org/packages/eliashaeussler/rector-config)\n\n\u003c/div\u003e\n\nThis package contains basic [Rector](https://github.com/rectorphp/rector)\nconfig for use in my personal projects. It is not meant to be used anywhere else.\nI won't provide support and don't accept pull requests for this repo.\n\n## 🔥 Installation\n\n[![Packagist](https://img.shields.io/packagist/v/eliashaeussler/rector-config?label=version\u0026logo=packagist)](https://packagist.org/packages/eliashaeussler/rector-config)\n[![Packagist Downloads](https://img.shields.io/packagist/dt/eliashaeussler/rector-config?color=brightgreen)](https://packagist.org/packages/eliashaeussler/rector-config)\n\n```bash\ncomposer require --dev eliashaeussler/rector-config\n```\n\n## ⚡ Usage\n\n```php\n# rector.php\n\nuse EliasHaeussler\\RectorConfig\\Config\\Config;\nuse EliasHaeussler\\RectorConfig\\Set\\CustomSet;\nuse Rector\\Config\\RectorConfig;\nuse Rector\\Php80\\Rector\\Class_\\AnnotationToAttributeRector;\nuse Rector\\Set\\ValueObject\\SetList;\nuse Rector\\ValueObject\\PhpVersion;\n\nreturn static function (RectorConfig $rectorConfig): void {\n    // Optional: Configure PHP version explicitly\n    // Can be left out to use the current environment's PHP version\n    $phpVersion = PhpVersion::PHP_81;\n\n    // Create config from Rector config object\n    $config = Config::create($rectorConfig, $phpVersion)-\u003ein(\n        __DIR__.'/src',\n        __DIR__.'/tests',\n    );\n\n    // Skip specific paths\n    $config-\u003enot(\n        __DIR__.'/src/lib',\n        __DIR__.'/tests/test-application/vendor',\n    );\n\n    // Include default PHPUnit sets\n    $config-\u003ewithPHPUnit();\n\n    // Include default Symfony sets\n    $config-\u003ewithSymfony();\n\n    // Include default TYPO3 sets\n    $config-\u003ewithTYPO3();\n\n    // Include custom sets\n    $config-\u003ewithSets(\n        new CustomSet(\n            SetList::CODE_QUALITY,\n            SetList::CODING_STYLE,\n        ),\n    );\n\n    // Skip specific rectors\n    $config-\u003eskip(\n        AnnotationToAttributeRector::class,\n        [\n            __DIR__.'/src/Some/File.php',\n        ],\n    );\n\n    // Apply configuration\n    $config-\u003eapply();\n};\n```\n\n## ⭐ License\n\nThis project is licensed under [GNU General Public License 3.0 (or later)](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feliashaeussler%2Frector-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feliashaeussler%2Frector-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feliashaeussler%2Frector-config/lists"}