Voltage sag and swell are the common problem for sensitive load. The impact range from load disruptions to substantial economic losses. The DVR is the best solution to protect the sensitive loads. This paper present a fast DVR with controller to compensate the short outage, reduced the harmonic distortion and transient voltage for balanced and unbalanced load. In-phase method with continues two vector control algorithm is used to detect and compensate AV and AQ variables during voltage sag and voltage compensation. When there is any phase angle or phase jump in supply voltage the reference voltage is adjusted to track the phase angle of the supply voltage. A phase locked loop is used to keep the load voltage synchronized continuously and tracks the source voltage. It is shown that the proposed DVR controller improves the system power quality. Photovoltaic (PV) system with boost converter is designed to maintain the DC source voltage. Simulation was carried out using PSCAD/EMTDC.