https://github.com/live627/laughing-palm-tree
Fun and games
https://github.com/live627/laughing-palm-tree
Last synced: about 1 month ago
JSON representation
Fun and games
- Host: GitHub
- URL: https://github.com/live627/laughing-palm-tree
- Owner: live627
- License: mit
- Created: 2023-10-13T04:20:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-06T23:54:09.000Z (over 1 year ago)
- Last Synced: 2025-01-22T11:28:59.814Z (6 months ago)
- Language: PHP
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# smf Rector
This project contains [Rector rules](https://github.com/rectorphp/rector) for [smf CMS](https://github.com/smf/smf) upgrades.
## Install
Install rector and smf rector via composer to your project:
```bash
composer require rector/rector --dev
composer require smf/smf-rector --dev
```## Use Sets
To add a set to your config, use `smf\Rector\Set\SymfonySetList` and `smf\Rector\Set\smfLevelSetList`
class and pick one of constants:```php
use smf\Rector\Set\smfLevelSetList;
use Rector\Config\RectorConfig;return static function (RectorConfig $rectorConfig): void {
$rectorConfig->sets([
smfLevelSetList::UP_TO_smf_25,
]);
};
```