We report co-phasing of 49 beams from a multicore fiber based on a spatial light modulator using a simple feedback loop control. A specific fiber of 7x7 Germanium doped cores was fabricated. The power carried by the far field main lobe of the phased array, in the continuous wave regime, amounts to 96% of its theoretical value. Femtoseconde pulses were also phase-locked with the same device configuration.