This is how you create a composer.json that places itself inside the (managed) vendor directory Very simple, but I didn't find an example while searching, and I want to remind myself that I can do this.
Place this file inside the vendor directory. The following would be an example project structure
+- /project
+- /lib