I need to properly title case all the directories and files inside my application folder as I'm moving my app to PSR-0 with namespacing.
I'm sure there's an elegant way in either php or via the commandline (Mac OSX) to accomplish this without spending hours doing it.
My structure looks like so:
application
admin
controller
dir1
file.php
dir2
file.php
...
language
english
english.php
dir1
file.php
...
dir2
file.php
...
model
dir1
file.php
...
dir2
file.php
...
...
public
...
I tried using glob but that gives me the full file paths and doesn't seem to change the actual directory name or file name.
Any help appreciated.