Isn't this exact feature available via Do Not Disturb? I have DND on 24/7, and you can quickly turn it off for Lyft/etc if needed. If you make groups within your contacts you can even hone the whitelist and can fairly quickly mod it.
I still want notifications for other things (especially text).