Use Composer API to handle script