Hacker GitHub

← All repos

rectorphp/rector

View on GitHub ↗ ★ 10,494 PHP

Instant Upgrades and Automated Refactoring of any PHP 5.3+ code

12 mentions on Hacker News by 11 people: 1 story, 11 comments · first 2019-07-04 · latest 2024-11-22

Mentions per year 12 mentions · busiest year 2022 (3)
20082026
  1. Once rector gets 8.4 rules out, this will be pretty awesome: https://github.com/rectorphp/rector/issues/8701 https://github.com/nikic/PHP-Parser/commit/7b0384cdbe03431c4...
    comment by klaussilveira · 2024-11-22 · in PHP 8.4
  2. Like everything... It depends. Just use rector https://github.com/rectorphp/rector
    comment by hparadiz · 2024-11-15 · in Upcoming Hardening in PHP
  3. …Symfony. Not to mention PHP has mature tooling to perform automated code upgrade between versions: https://github.com/rectorphp/rector The project I mentioned was 4 years old and so far no code change was required between PHP 7.2 and PHP…
    comment by hu3 · 2024-02-07 · in jQuery v4.0 Beta
  4. …migration to 7 things have been super easy/simple. Especially if you get Rector [0] involved. [0] https://github.com/rectorphp/rector
    comment by Implicated · 2023-03-18 · in PHP 8.2.4
  5. Also, see this: https://github.com/rectorphp/rector Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
  6. …previous version of Laravel. With the help of rector, it should be an afternoon's work to upgrade. https://github.com/rectorphp/rector
  7. I see many aren't familiar with https://github.com/RectorPHP/Rector . It will help you with a bunch of PHP&frameworks migration work.
  8. …want to use the extra type support that PHP nowadays has, you can still benefit from it. Tools like https://github.com/RectorPHP/Rector help you automate PHP code updates, and changes between framework versions. Even the linked proposal…
  9. I opened a PR here: https://github.com/rectorphp/rector/pull/6101
  10. …also do mass updates from code inspections. Also worth checking out is a package called Rector ( https://github.com/rectorphp/rector ) which will automate a lot of this by scanning the codebase and providing diffs so you can upgrade safely.
    comment by rossriley · 2020-10-23 · in PHP 8: Before and After
  11. …5. Upgrade the code with an AST fixer (might help you update to newer PHP version): https://github.com/rectorphp/rector 6. Add tests to it: https://phpunit.de/ 7. Run mutation tests: https://infection.github.io/ The "0 budget" is rough,…
    comment by dkarlovi · 2020-10-23 · in PHP 8: Before and After