Files and Folders: Batch File Rename (BFR) library
Mohamed Elkholy (contact me)
This class can be used to rename multiple files according to rules.
It can traverse a given directory and rename files that match given patterns.
The files are renamed according to rules that define whether the new names should include sequence numbers, text to be stripped from the original names, append and prepend text, rename the file name extension, change the case of name words, convert between spaces, dots and underscores, and trim the resulting name.
Click here for detailed information about this class on phpclasses.org