Add resource expansion and update composer.json