add directory parameter on composer helper