psliwa / image-optimizer

Image optimization / compression library. This library is able to optimize png, jpg and gif files in very easy and handy way. It uses optipng, pngquant, pngcrush, pngout, gifsicle, jpegoptim and jpegtran tools.
MIT License
909 stars 141 forks source link

Suggestion: add vendor name to namespace #42

Closed freekmurze closed 6 years ago

freekmurze commented 7 years ago

Right now the namespace of this package is ImageOptimizer. Changes are low, but it's possible that this namespace could conflict with the namespaces used in the projects it is installed upon.

To lower these changes a very high percentage of packages add the vendor name to the namespace. In you case you base namespace would be Psliwa\ImageOptimizer.

If you would use psr-4 autoloading instead of the deprecated psr-0 all sources could reside in the src directly.

Obviously renaming the base namespace is a breaking change, so you would have to tag a new major version. In my opinion this is worth it.

If you want I could quickly a whip up a PR that makes the necessary changes.