update composer.json, add post-package-install and post-package-update