There are already some methods of packaging PHP projects, but I don’t believe anyone as taken the approach of writing a Composer plugin yet. So I decided to give it a shot:
Using a plugin has the advantage of automatically keeping the generated Nix expression up-to-date. Plus it works even for developers without Nix!
Hope you’ll find it useful.