@klimov-paul `StringHelper::basename()` was mainly implemented to be used for php namespaces because `basename()` does not work for them on linux systems.
Added a note about this to the docs (1d2185f): 
> This method was mainly created to work on php namespaces. When working with real
> file paths, php's `basename()` should work fine for you.