https://github.com/phpdevsr/rector-codeigniter4
Rector upgrades rules for Codeigniter4
https://github.com/phpdevsr/rector-codeigniter4
Last synced: 5 months ago
JSON representation
Rector upgrades rules for Codeigniter4
- Host: GitHub
- URL: https://github.com/phpdevsr/rector-codeigniter4
- Owner: PHPDevsr
- License: mit
- Created: 2024-04-01T02:44:05.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-07T19:41:20.000Z (over 1 year ago)
- Last Synced: 2025-09-28T09:23:41.704Z (9 months ago)
- Language: PHP
- Size: 55.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Rector Rules for Codeigniter4
[](https://github.com/PHPDevsr/rector-codeigniter4/actions/workflows/test-phpunit.yaml)
[](https://github.com/PHPDevsr/rector-codeigniter4/actions/workflows/code_analysis.yaml)
[](https://packagist.org/packages/PHPDevsr/rector-codeigniter4/stats)
[](https://packagist.org/packages/PHPDevsr/rector-codeigniter4)
See available [Codeigniter4 rules](/docs/rector_rules_overview.md)
## Requirement
Minimum PHP 8.1
## Install
This package is a [Rector](https://github.com/rectorphp/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:
```bash
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
withSets([
CodeigniterSetList::CODEIGNITER_45
]);
```
## Learn Rector Faster
Rector is a tool that [we develop](https://getrector.org/) 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.