update composer.json and Client constructor call