Skip to content

Commit

Permalink
change adapting README
Browse files Browse the repository at this point in the history
  • Loading branch information
ddevsr committed Apr 1, 2024
1 parent b7cff46 commit 267cb14
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
# Rector Rules for Laravel
[![Tests](https://github.com/driftingly/rector-laravel/actions/workflows/tests.yaml/badge.svg)](https://github.com/driftingly/rector-laravel/actions/workflows/tests.yaml)
[![Code Analysis](https://github.com/driftingly/rector-laravel/actions/workflows/code_analysis.yaml/badge.svg)](https://github.com/driftingly/rector-laravel/actions/workflows/code_analysis.yaml)
[![Packagist Downloads](https://img.shields.io/packagist/dm/driftingly/rector-laravel)](https://packagist.org/packages/driftingly/rector-laravel/stats)
[![Packagist Version](https://img.shields.io/packagist/v/driftingly/rector-laravel)](https://packagist.org/packages/driftingly/rector-laravel)
# Rector Rules for Codeigniter4
[![Tests](https://github.com/PHPDevsr/rector-codeigniter4/actions/workflows/tests.yaml/badge.svg)](https://github.com/PHPDevsr/rector-codeigniter4/actions/workflows/tests.yaml)
[![Code Analysis](https://github.com/PHPDevsr/rector-codeigniter4/actions/workflows/code_analysis.yaml/badge.svg)](https://github.com/PHPDevsr/rector-codeigniter4/actions/workflows/code_analysis.yaml)
[![Packagist Downloads](https://img.shields.io/packagist/dm/PHPDevsr/rector-codeigniter4)](https://packagist.org/packages/PHPDevsr/rector-codeigniter4/stats)
[![Packagist Version](https://img.shields.io/packagist/v/PHPDevsr/rector-codeigniter4)](https://packagist.org/packages/PHPDevsr/rector-codeigniter4)

See available [Laravel rules](/docs/rector_rules_overview.md)
See available [Codeigniter4 rules](/docs/rector_rules_overview.md)

## Install

This package is a [Rector](https://github.com/rectorphp/rector) extension developed by the Laravel community.

Install the `RectorLaravel` package as dependency:
Install the `PHPDevsr\Rector\Codeigniter4` package as dependency:

```bash
composer require driftingly/rector-laravel --dev
composer require phpdevsr/rector-codeigniter4 --dev
```

## Use Sets

To add a set to your config, use `RectorLaravel\Set\LaravelSetList` class and pick one of the constants:
To add a set to your config, use `PHPDevsr\Rector\Codeigniter4\Set\CodeigniterSetList` class and pick one of the constants:

```php
<?php

declare(strict_types=1);

use Rector\Config\RectorConfig;
use RectorLaravel\Set\LaravelSetList;
use PHPDevsr\Rector\Codeigniter4\Set\CodeigniterSetList;

return RectorConfig::configure()
->withSets([
LaravelSetList::LARAVEL_110
CodeigniterSetList::CODEIGNITER_44
]);
```

Expand Down

0 comments on commit 267cb14

Please sign in to comment.