Skip to content

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

Notifications You must be signed in to change notification settings

ctrlaltca/php-class-splitter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%