Update to Minify function.

Update function and add composer.json