AAndrés Vilchis·Jun 29Production-Ready in under 10 min. with: CodeIgniter 4 + Docker Stack with CI/CD 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 command4 min read·viavi.hashnode.dev
GGeni Jaho·Jun 20, 2023Speed up GitHub Actions by caching Composer, Rector, & PintGitHub'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
GGeni Jaho·Apr 8, 2023Doing stricter checks in PHPA 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.dev3LEL
GGeni Jaho·Feb 26, 2023Upgrading to Eloquent accessors & mutators from Laravel 9Laravel 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
GGeni Jaho·Sep 24, 2022Safely upgrade from PHP 7.4 to 8.1 using RectorYou just have to try Rector. Heck, let the tests break, just run it.4 min read·blog.genijaho.dev1H
GGeni Jaho·Sep 4, 2022Refactoring #8: What is dead may never runRemoving 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
GGeni Jaho·Aug 31, 2022Refactoring #7: Upping the coding style game in PHP using RectorRector has a catalog of refactorings ready for us to consume and expand upon.5 min read·blog.genijaho.dev
GGeni Jaho·Aug 11, 2022Refactoring #6: Improve Code Quality in Laravel using RectorThe promise is simple: you install and run the package, you get instant automated upgrades and refactorings.4 min read·blog.genijaho.dev