Php Loop Through Object Array Typescript Downloads