This library can be used to control the DC mnotor with feedback from quadrature encoders. Here it will generate the required PWM control signal for this, but one can change the control signal, as per their requirement.
Please install theses library to use this library as this library uses some of these components for speed control.