Minecraft wiki entry for Phantom-proofing, associated text: 1 Purpose
2 Mechanics and Properties
2.1 Spawning
2.2 Attacking
3 Methods
3.1 Method 1: Covering
3.2 Method 2: Underwater AFK spot
3.3 Method 3: Beds
3.4 Method 4: Cats
3.5 Method 5: Combined Farming