#Installation#
First you'll need [dnsmasq][1], assuming you're on OSX installation is simply:
brew install dnsmasq
#Configuration#
Add 127.0.0.1 to to the top of your DNS server list in your Network Configuration:
| <?php | |
| // This function searches for needle inside of multidimensional array haystack | |
| // Returns the path to the found element or false | |
| function in_array_multi( $needle, array $haystack ) { | |
| if ( ! is_array( $haystack ) ) return false; | |
| foreach ( $haystack as $key => $value ) { | |
| if ( $value == $needle ) { | |
| return $key; | |
| } else if ( is_array( $value ) ) { |
#Installation#
First you'll need [dnsmasq][1], assuming you're on OSX installation is simply:
brew install dnsmasq
#Configuration#
Add 127.0.0.1 to to the top of your DNS server list in your Network Configuration:
| <?php | |
| namespace Alpha; | |
| use GuzzleHttp\Client; | |
| class Wrapper | |
| { | |
| protected static $client; |