Can I put my iPhone in quiet mode only for a limited period of time?
Source
Your best option is to use Do Not Disturb.

There are multiple new limited-time settings for Do Not Disturb in the Control Center, which automatically turn off after the specified time elapses.

For one hour
Until this evening (or afternoon/morning depending on the time - it's generally a few hours)
Until I leave this location
Until this event ends (if you have a timed event set in your calendar)   A single tap on the icon without selecting an option turns
on Do Not Disturb until you tap it again.