Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 573 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 573 Bytes

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

It now capitalises the first letter of class names

License

MIT License