Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/elazar/php-class-splitter

A PHP CLI script that splits a file containing multiple PHP classes up into multiple files with one class per file.
https://github.com/elazar/php-class-splitter

Last synced: 2 months ago
JSON representation

A PHP CLI script that splits a file containing multiple PHP classes up into multiple files with one class per file.

Awesome Lists containing this project

README

        

# Usage

php php-class-splitter.php FILE DEST

Splits a file containing multiple PHP classes up into multiple files with
one class per file. Overwrites any existing files in the destination path
with the same name, useful for handling redundant class definitions
across multiple files. Requires the tokenizer extension.

* FILE - path to a single PHP file containing multiple class definitions
* DEST - path to a directory to contain the new class files

# License

[MIT License](http://opensource.org/licenses/MIT)