DNS code samples for PHP

- Adding PhpStorm's `.idea/` directory to .gitignore

- Adding Sphinx's `_build` directory to docs/.gitignore

- Adding DNS code samples for PHP