If you use fdesign.lowpass with a minimum order design, the default design is the PM equiripple method
To convert the passband tolerance and stopband tolerances to passband ripple in dB and stopband attenuation
Rp = -20*log10((1-0.05)/(1+0.05));
Ast = -20*log10((0.05)/(1+0.05));
Fs = 8000;
d = fdesign.lowpass('Fp,Fst,Ap,Ast' ,2e3,2.5e3,Rp,Ast,Fs);
Hd = design(d);
The above will call firpm()