Am implementing HTTP content negotiation with PHP now. Without third-party libraries. In millennial-style PHP code (meaning: vanilla PHP with no framework).