---
title: "#rector articles | Hashnode"
description: "Explore 8 articles tagged #rector on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/rector"
---

Tag

# #rector

8 posts · 1 followers

[Andrés Vilchis](https://hashnode.com/@viavi) · [Jun 29](https://hashnode.com/posts/production-ready-in-under-10-min-with-codeigniter-4-docker-stack-with-ci-cd/6a42b3bf21caba15c6fcb87e)

### [Production-Ready in under 10 min. with: CodeIgniter 4 + Docker Stack with CI/CD](https://viavi.hashnode.dev/production-ready-in-under-10-min-with-codeigniter-4-docker-stack-with-ci-cd?utm_source=hashnode&utm_medium=feed)

A full CodeIgniter 4 Docker stack with PHP 8.2, Nginx, MySQL 8.4, Redis 7, GitHub Actions CI/CD, PHPStan level 6, and PHPUnit. Full setup in 1 command

4 min read · [viavi.hashnode.dev](https://viavi.hashnode.dev/production-ready-in-under-10-min-with-codeigniter-4-docker-stack-with-ci-cd?utm_source=hashnode&utm_medium=feed)

[Geni Jaho](https://hashnode.com/@genijaho) · [Jun 20, 2023](https://hashnode.com/posts/speed-up-github-actions-by-caching-composer-rector-pint/6491be9395a46490eec745db)

### [Speed up GitHub Actions by caching Composer, Rector, & Pint](https://blog.genijaho.dev/speed-up-github-actions-by-caching-composer-rector-pint?utm_source=hashnode&utm_medium=feed)

GitHub's 2000 minutes per month of free usage of GitHub Actions is usually enough to handle light workflows. However, as more tech is run automatically, we are forced to upgrade to a paid plan or optimize our workflows. Currently, I am running Rector...

5 min read · [blog.genijaho.dev](https://blog.genijaho.dev/speed-up-github-actions-by-caching-composer-rector-pint?utm_source=hashnode&utm_medium=feed)

[Geni Jaho](https://hashnode.com/@genijaho) · [Apr 8, 2023](https://hashnode.com/posts/doing-stricter-checks-in-php/6431e0e593ca2d4575fcf3aa)

### [Doing stricter checks in PHP](https://blog.genijaho.dev/doing-stricter-checks-in-php?utm_source=hashnode&utm_medium=feed)

A nice refactoring I've learned recently is to utilize types in conditionals. For years I’ve been doing if (!empty($posts)), but Rector, a tool to automatically refactor code, changed that to if ($posts === \[\]). The main advantage of using $posts ===...

3 min read · [blog.genijaho.dev](https://blog.genijaho.dev/doing-stricter-checks-in-php?utm_source=hashnode&utm_medium=feed)

[3](https://hashnode.com/posts/doing-stricter-checks-in-php/6431e0e593ca2d4575fcf3aa)

[Geni Jaho](https://hashnode.com/@genijaho) · [Feb 26, 2023](https://hashnode.com/posts/upgrading-to-eloquent-accessors-and-mutators-from-laravel-9/63fb4f481a49f4ca1696b73c)

### [Upgrading to Eloquent accessors & mutators from Laravel 9](https://blog.genijaho.dev/upgrading-to-eloquent-accessors-and-mutators-from-laravel-9?utm_source=hashnode&utm_medium=feed)

Laravel 10 is making the headlines these days. However, many apps are stuck in older versions, or at least still use the syntax and methods of older releases. One of the most significant changes introduced in Laravel 9 is the syntax for accessors and...

3 min read · [blog.genijaho.dev](https://blog.genijaho.dev/upgrading-to-eloquent-accessors-and-mutators-from-laravel-9?utm_source=hashnode&utm_medium=feed)

[Geni Jaho](https://hashnode.com/@genijaho) · [Sep 24, 2022](https://hashnode.com/posts/safely-upgrade-from-php-74-to-81-using-rector/632f5d283ac18d0d78a02839)

### [Safely upgrade from PHP 7.4 to 8.1 using Rector](https://blog.genijaho.dev/safely-upgrade-from-php-74-to-81-using-rector?utm_source=hashnode&utm_medium=feed)

You just have to try Rector. Heck, let the tests break, just run it.

4 min read · [blog.genijaho.dev](https://blog.genijaho.dev/safely-upgrade-from-php-74-to-81-using-rector?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/safely-upgrade-from-php-74-to-81-using-rector/632f5d283ac18d0d78a02839)

[Geni Jaho](https://hashnode.com/@genijaho) · [Sep 4, 2022](https://hashnode.com/posts/refactoring-8-what-is-dead-may-never-run/6314f47a041b51e1712e57ec)

### [Refactoring #8: What is dead may never run](https://blog.genijaho.dev/refactoring-8-what-is-dead-may-never-run?utm_source=hashnode&utm_medium=feed)

Removing unreachable and redundant code will benefit you massively over time. There's a tool to do this automatically for you.

4 min read · [blog.genijaho.dev](https://blog.genijaho.dev/refactoring-8-what-is-dead-may-never-run?utm_source=hashnode&utm_medium=feed)

[Geni Jaho](https://hashnode.com/@genijaho) · [Aug 31, 2022](https://hashnode.com/posts/upping-the-coding-style-game-in-php-using-rector/630f5bf575af73ad1f0611b4)

### [Refactoring #7: Upping the coding style game in PHP using Rector](https://blog.genijaho.dev/upping-the-coding-style-game-in-php-using-rector?utm_source=hashnode&utm_medium=feed)

Rector has a catalog of refactorings ready for us to consume and expand upon.

5 min read · [blog.genijaho.dev](https://blog.genijaho.dev/upping-the-coding-style-game-in-php-using-rector?utm_source=hashnode&utm_medium=feed)

[Geni Jaho](https://hashnode.com/@genijaho) · [Aug 11, 2022](https://hashnode.com/posts/improve-code-quality-in-laravel-using-rector/62f4e45f31be20833796f6ff)

### [Refactoring #6: Improve Code Quality in Laravel using Rector](https://blog.genijaho.dev/improve-code-quality-in-laravel-using-rector?utm_source=hashnode&utm_medium=feed)

The promise is simple: you install and run the package, you get instant automated upgrades and refactorings.

4 min read · [blog.genijaho.dev](https://blog.genijaho.dev/improve-code-quality-in-laravel-using-rector?utm_source=hashnode&utm_medium=feed)
