You can connect your PlayStation 4 controller to your PC using a micro-USB cable or wirelessly via Bluetooth.
It's possible to connect your PS4 controller to a Mac computer to play digitally downloaded PlayStation 4 games without using a PS4 console.