https://github.com/ralphschindler/Namespacer
PHP Class converter to namepaces.
https://github.com/ralphschindler/Namespacer
Last synced: 11 months ago
JSON representation
PHP Class converter to namepaces.
- Host: GitHub
- URL: https://github.com/ralphschindler/Namespacer
- Owner: ralphschindler
- Created: 2013-03-01T17:34:28.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-03-04T20:59:46.000Z (almost 13 years ago)
- Last Synced: 2024-11-02T08:30:55.923Z (over 1 year ago)
- Language: PHP
- Size: 563 KB
- Stars: 59
- Watchers: 3
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-php-cn - 官网
- awesome-php - NameSpacer - 一个转化下划线到命名空间的库 (其他的依赖管理 Dependency Management Extras)
README
Namespacer
==========
This tool will assist you in taking older underscore/prefix spaced code
and will namespace it as best as it can, and also make the files and class
names ZF/PEAR compatible.
This two step command will first scan files and produce a map. You can
then view or edit the file before moving onto the second step. The
second step does the actual transformation. These transformations will
be done in place, so it is best to either do this in a separate copy of
the code, or on top of a git repository where you can easily reset --hard
if you need to.
**Download**: https://github.com/ralphschindler/Namespacer/blob/master/namespacer.phar?raw=true
* First, create a map file:
```
namespacer.phar map --mapfile types.php --source path/to/src
```
* Second, transform the types located in the map file:
```
namespacer.phar transform --mapfile types.php
```