{"id":16252394,"url":"https://github.com/remarkablemark/rector-template","last_synced_at":"2026-05-02T03:32:34.142Z","repository":{"id":211673049,"uuid":"729710839","full_name":"remarkablemark/rector-template","owner":"remarkablemark","description":"🐘 Rector template","archived":false,"fork":false,"pushed_at":"2026-01-26T14:56:43.000Z","size":195,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-27T03:42:17.457Z","etag":null,"topics":["codemod","composer","php","rector","refactoring","template"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/remarkablemark/rector-template","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/remarkablemark.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["remarkablemark"],"patreon":"remarkablemark","open_collective":null,"ko_fi":"remarkablemark","tidelift":null,"community_bridge":null,"liberapay":"remarkablemark","issuehunt":null,"otechie":null,"buy_me_a_coffee":"remarkablemark","thanks_dev":"u/gh/remarkablemark","custom":["https://b.remarkabl.org/teespring"]}},"created_at":"2023-12-10T05:10:08.000Z","updated_at":"2026-01-26T14:56:45.000Z","dependencies_parsed_at":"2024-01-19T15:28:05.230Z","dependency_job_id":"a26c7404-a353-4981-b208-85d56b6c4fd2","html_url":"https://github.com/remarkablemark/rector-template","commit_stats":null,"previous_names":["remarkablemark/rector-template"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/remarkablemark/rector-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkablemark%2Frector-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkablemark%2Frector-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkablemark%2Frector-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkablemark%2Frector-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remarkablemark","download_url":"https://codeload.github.com/remarkablemark/rector-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkablemark%2Frector-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32522245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"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":["codemod","composer","php","rector","refactoring","template"],"created_at":"2024-10-10T15:13:33.240Z","updated_at":"2026-05-02T03:32:34.123Z","avatar_url":"https://github.com/remarkablemark.png","language":"PHP","funding_links":["https://github.com/sponsors/remarkablemark","https://patreon.com/remarkablemark","https://ko-fi.com/remarkablemark","https://liberapay.com/remarkablemark","https://buymeacoffee.com/remarkablemark","https://thanks.dev/u/gh/remarkablemark","https://b.remarkabl.org/teespring"],"categories":[],"sub_categories":[],"readme":"# rector-template\n\n[![packagist](https://img.shields.io/packagist/v/remarkablemark/rector-template)](https://packagist.org/packages/remarkablemark/rector-template)\n[![test](https://github.com/remarkablemark/rector-template/actions/workflows/test.yml/badge.svg)](https://github.com/remarkablemark/rector-template/actions/workflows/test.yml)\n\n[Rector](https://github.com/rectorphp/rector) template. Example from Rector [custom rule](https://getrector.com/documentation/custom-rule).\n\n## Requirements\n\nPHP \u003e=8.2\n\n## Install\n\nInstall with [Composer](http://getcomposer.org/):\n\n```sh\ncomposer require --dev rector/rector remarkablemark/rector-template\n```\n\n## Usage\n\nRegister rule in `rector.php`:\n\n```php\n\u003c?php\n\ndeclare(strict_types=1);\n\nuse Rector\\Config\\RectorConfig;\nuse Remarkablemark\\RectorTemplate\\ExampleRector;\n\nreturn static function (RectorConfig $rectorConfig): void {\n    $rectorConfig-\u003epaths([\n        __DIR__,\n    ]);\n    $rectorConfig-\u003erule(ExampleRector::class);\n};\n```\n\nSee the diff:\n\n```php\nvendor/bin/rector process --dry-run\n```\n\nApply the rule:\n\n```php\nvendor/bin/rector process\n```\n\nClear the cache and apply the rule:\n\n```php\nvendor/bin/rector process --clear-cache\n```\n\n## Rule\n\n### Before\n\n```php\n$user-\u003esetPassword('123456');\n```\n\n### After\n\n```php\n$user-\u003echangePassword('123456');\n```\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremarkablemark%2Frector-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremarkablemark%2Frector-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremarkablemark%2Frector-template/lists"}