Rector rule to upgrade zircote/swagger-php annotations to attributes Installation git clone git@github.com:wenbinye/openapi-rector.git cd openapi-rector composer install --no-dev In project directory, run: /path/to/openapi-rector/bin/openapi-rector