How to create pwm library

hello sir/madam,
please let me know how to create my own pwm library

how to make arduino library

Please read the forum guidelines.

what do you need it to do more than the analogWrite() function that generates a PWM output on the specified pin?