We propose an innovative strategy to discriminate between two coherent states affected by either uniform or gaussian phase noise. The strategy is based on a homodyne-like detection scheme with photon-number-resolving detectors in the regime of low-intensity local oscillator. The experimental implementation of the detection scheme involves two hybrid photodetectors, whose outputs are used in post processing to calculate the shot-by-shot photon-number difference. The performance of this strategy is quantified in terms of the error probability in discriminating the noisy coherent signals as a function of the characteristic noise parameters.