phpdevsr / rector-codeigniter4
Rector upgrades rules for Codeigniter4
Installs: 92
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 1
Type:rector-extension
Requires
- php: >=8.1
- rector/rector: ^1.1
- symplify/rule-doc-generator: ^12.1
Requires (Dev)
- codeigniter/coding-standard: ^1.7
- codeigniter/phpstan-codeigniter: ^1.4
- ergebnis/composer-normalize: ^2.42
- phpstan/phpstan: ^1.11
- phpstan/phpstan-strict-rules: ^1.6
- phpunit/phpunit: ^10.5.16
This package is auto-updated.
Last update: 2024-11-07 19:54:19 UTC
README
See available Codeigniter4 rules
Requirement
Minimum PHP 8.1
Install
This package is a Rector extension developed by the PHPDevsr based on Codeigniter4 Community. In set 4.5
required PHPStan
, you needed create phpstan.neon.dist
in root project.
Install the PHPDevsr\Rector\Codeigniter4
package as dependency:
composer require phpdevsr/rector-codeigniter4 --dev
Use Sets
To add a set to your config, use PHPDevsr\Rector\Codeigniter4\Set\CodeigniterSetList
class and pick one of the constants:
<?php declare(strict_types=1); use Rector\Config\RectorConfig; use PHPDevsr\Rector\Codeigniter4\Set\CodeigniterSetList; return RectorConfig::configure() ->withSets([ CodeigniterSetList::CODEIGNITER_45 ]);
Learn Rector Faster
Rector is a tool that we develop and share for free, so anyone can save hundreds of hours on refactoring. But not everyone has time to understand Rector and AST complexity. You have 2 ways to speed this process up:
- Read the book - The Power of Automated Refactoring
- Hire our experienced team to improve your codebase
Both ways support us to and improve Rector in sustainable way by learning from practical projects.