updated composer to 3x, added template() to docs