ibexa / rector
Ibexa Rector refactoring tool rule sets
Requires
- php: >=8.3
- rector/rector: ^1.0
- symfony/config: ^5.4
- symfony/console: ^5.4
- symfony/dependency-injection: ^5.4
- symfony/event-dispatcher: ^5.4
- symfony/http-foundation: ^5.4
- symfony/http-kernel: ^5.4
- symfony/yaml: ^5.4
Requires (Dev)
- ibexa/code-style: ~2.0.0
- nikic/php-parser: ^4.18
- phpstan/phpstan: ^1.10
- phpstan/phpstan-phpunit: ^1.3
- phpstan/phpstan-symfony: ^1.3
- phpunit/phpunit: ^10
- qossmic/deptrac-shim: ^0.24.0 || ^1.0.2
This package is auto-updated.
Last update: 2024-12-19 14:38:10 UTC
README
This package is part of Ibexa DXP.
This package provides a set of Rector rules to allow automatic upgrades between Ibexa DXP versions.
To use this package, install Ibexa DXP and follow installation instructions below.
Installation
composer require --dev ibexa/rector:~5.0.x-dev
Usage
- Create
./rector.php
file in your project, with the following contents, adjusted to your project structure:declare(strict_types=1); use Ibexa\Contracts\Rector\Sets\IbexaSetList; use Rector\Config\RectorConfig; return RectorConfig::configure() ->withPaths( [ __DIR__ . '/src', // see if it matches your project structure __DIR__ . '/tests' ] ) ->withSets( [ IbexaSetList::IBEXA_50->value // rule set for upgrading to Ibexa DXP 5.0 ] ) ;
- Execute Rector
php ./bin/rector process <directory>
CONTRIBUTING
See contribution guideline to learn how to add rules.
COPYRIGHT
Copyright (C) 1999-2024 Ibexa AS (formerly eZ Systems AS). All rights reserved.
LICENSE
This source code is available separately under the following licenses:
A - Ibexa Business Use License Agreement (Ibexa BUL), version 2.4 or later versions (as license terms may be updated from time to time) Ibexa BUL is granted by having a valid Ibexa DXP (formerly eZ Platform Enterprise) subscription, as described at: https://www.ibexa.co/product For the full Ibexa BUL license text, please see:
- LICENSE-bul file placed in the root of this source code, or
- https://www.ibexa.co/software-information/licenses-and-agreements (latest version applies)
AND
B - GNU General Public License, version 2 Grants an copyleft open source license with ABSOLUTELY NO WARRANTY. For the full GPL license text, please see:
- LICENSE file placed in the root of this source code, or
- https://www.gnu.org/licenses/old-licenses/gpl-2.0.html