phpseclib/phpseclib3_rector 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

phpseclib/phpseclib3_rector

最新稳定版本:1.0.0

Composer 安装命令:

composer require phpseclib/phpseclib3_rector

包简介

Rector rules for upgrading from phpseclib v2 to phpseclib v3

README 文档

README

Rector rules to upgrade a phpseclib v2.0 install to phpseclib v3.0

Overview

You can use phpseclib2_compat to make all your phpseclib v2.0 calls use phpseclib v3.0, internally, under the hood, or you can use this Rector rule to upgrade your phpseclib v2.0 calls to phpseclib v3.0 calls.

Installation

With Composer:

composer require phpseclib/phpseclib3_rector:~1.0

Usage

Create a rector.php file with the following contents:

<?php
use Rector\Config\RectorConfig;
use phpseclib\phpseclib3Rector\Set;

return RectorConfig::configure()
    ->withSets([Set::PATH]);

In the same directory where you created that file you can then run Rector by doing either of these commands:

vendor/bin/rector process src --dry-run
vendor/bin/rector process src

The files in the src/ directory will either be full on modified or (in the case of --dry-run) the changes that would be made will be previewed.

统计信息

  • 总下载量: 15
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-04