There are mechanical hose timers....
https://www.amazon.com/Orbit-62034-Mechanical-Watering-Timer/dp/B006FLGHGE
Another option is to use a livestock watering system or a residential toilet float. https://www.amazon.com/Automatic-Adjustable-Livestock-Aquaculture-Hydroponics/dp/B08J6X88WX/
https://www.amazon.com/Fluidmaster-400H-002-Performax-Performance-Multicolor/dp/B07N7BH94Q/
Another option that I am familiar with is using linktap timers in cloud mode. This would let you set a timer in 1 minute increments from your phone.
https://www.amazon.com/LinkTap-Wireless-Water-Timer-Gateway/dp/B08YW83WK5
But can you program? Doing this timer based is a $15 and 2 beer job with esphome and a water solenoid? Maybe $25 if you want to use a float switch.