Violet phosphorus (VP) is a new type of two-dimensional nanomaterial that has unique electronic and optoelectronic properties, and has gained wide attention in the fields of physics, chemistry, and materials science. However, only a few instances of the use of VP in fiber lasers have been demonstrated. For instance, VP films have been utilized as saturable absorbers in Q-switched ytterbium-doped fiber lasers (YDFL) and erbium-doped fiber lasers (EDFL), operating at central wavelengths of 1033 nm and 1560 nm, respectively. Herein, VP films are prepared using a liquid phase exfoliation method and introduced in the ring cavity of a YDFL. Increasing the pump power from 113 mW to 245 mW, and repetition rates from 32.33 kHz to 107.12 kHz, resulted in a stable sequence of Q-switched pulses. A pulse width of 2.9 µs is obtained at a pump power of 245 mW. At a pump power of 230 mW, the pulse energy is 31.02 nJ. In the case of EDFL, stable Q-switched pulses are obtained at a maximum pump power of 150 mW, with the repetition rate, pulse width and pulse energy being 63.51 kHz, 6.4 µs, and 102.19 nJ, respectively. These results indicate that VP may be a promising broadband SA suitable for fiber lasers with wavelengths of 1 µm and 1.5 µm.