hi Harry! The simplest way to do that is using the PHP buildpack: simply add a composer.json file inside your repository with only {} inside and it will works fine.
More info here:
https://devcenter.qoddi.com/static-assets/
You can also check the PHP buildpack for Apache/NGINX additional configuration,
Hope that helps!
Sam.