Converting to composer plugin