承接 gong023/namae-space 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

gong023/namae-space

Composer 安装命令:

composer require gong023/namae-space

包简介

README 文档

README

Build Status

NamaeSpace is util command for PHP namespace. this command enables you to find and replace namespace using static analysis.

gif

Installation

composer require --dev gong023/namae-space

Usage

Find

namaespace find -C $HOME/your/project \ # path to your project composer.json
                -F Name\\YourClass      # Name what you want to find

namaespace command stdouts usage of Name\\YourClass.

See --help to know further.

Replace

namaespace replace -C $HOME/your/project      \ # path to your project composer.json
                   -O Origin\\YourOriginClass \ # Replaced OriginName
                   -N New\\YourNewClass         # NewClassName which you want to replace

namaespace command finds YourOriginClass, and then replaces it to YourNewClass.

You can pass -D or --dry_run option if you wanna test before replace. See --help to know further.

Unlike IDE, NamaeSpace can change Global namespace to be named.

How does it work

namaespace finds paths by reading composer.json and analyses codes.

Mainly analysis is delegated to nikic/PHP-Parser. You don't have to worry about instability of regex.

And analysis is executed under multi processing. You can pass -M or --max_process option to control number of process for any commands.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2016-08-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固