<commit_before># Xdebug toggler for OSX

![](screenshot.jpg "Usage Example")

[Xdebug][xdebug] is a must have extension for PHP, although the times you don't actually need it, it's a drag.

This simple script allows to toggle `on` and `off` [Xdebug][xdebug] and is meant for anyone running `PHP` and `Xdebug` installed via [Homebrew][brew].

You can follow the _OS X Apache Setup_ guide, divided in two parts, to get the perfect MAMP setup on OSX:

* [Part 1: Multiple PHP Versions][tutorial-1]
* [Part 2: MySQL, APC & More...][tutorial-2]

>> This script is inspired by the great [sphp][sphp] script. Which I highly suggest to install if you need to switch easily between php versions

## Quick Installation

```
curl -L https://raw.githubusercontent.com/w00fz/xdebug-osx/master/xdebug > /usr/local/bin/xdebug
```

## Installation with clone

```
git clone <EMAIL>:w00fz/xdebug-osx.git
```

Add `/usr/local/bin` to your `$PATH`. If you use the Bash shell, you can do this by running this command:
```
echo 'export PATH="/usr/local/bin:$PATH"' >> $HOME/.bashrc
```
You may need to restart your shell for this to take effect, or refrehs it with `source ~/.bashrc`.

If you want the global command then run:
```
cd xdebug-osx
ln -s `pwd`/xdebug /usr/local/bin/xdebug
```

## Make sure `xdebug` is executable

```
chmod +x /usr/local/bin/xdebug
```

## Usage
```
./xdebug-osx/xdebug       # outputs the current status
./xdebug-osx/xdebug on    # enables xdebug
./xdebug-osx/xdebug off   # disables xdebug
```

## License
[LICENSE](LICENSE)<commit_msg>Update readme with homebrew installation option (#4)<commit_after># Xdebug toggler for OSX

![](screenshot.jpg "Usage Example")

[Xdebug][xdebug] is a must have extension for PHP, although the times you don't actually need it, it's a drag.

This simple script allows to toggle `on` and `off` [Xdebug][xdebug] and is meant for anyone running `PHP` and `Xdebug` installed via [Homebrew][brew].

You can follow the _OS X Apache Setup_ guide, divided in two parts, to get the perfect MAMP setup on OSX:

* [Part 1: Multiple PHP Versions][tutorial-1]
* [Part 2: MySQL, APC & More...][tutorial-2]

>> This script is inspired by the great [sphp][sphp] script. Which I highly suggest to install if you need to switch easily between php versions

## Quick Installation

```
curl -L https://raw.githubusercontent.com/w00fz/xdebug-osx/master/xdebug > /usr/local/bin/xdebug
```

## Installation with homebrew

```
brew install xdebug-osx
```

## Installation with clone

```
git clone <EMAIL>@github.<EMAIL>:w00fz/xdebug-osx.git
```

Add `/usr/local/bin` to your `$PATH`. If you use the Bash shell, you can do this by running this command:
```
echo 'export PATH="/usr/local/bin:$PATH"' >> $HOME/.bashrc
```
You may need to restart your shell for this to take effect, or refrehs it with `source ~/.bashrc`.

If you want the global command then run:
```
cd xdebug-osx
ln -s `pwd`/xdebug /usr/local/bin/xdebug
```

## Make sure `xdebug` is executable

```
chmod +x /usr/local/bin/xdebug
```

## Usage
```
xdebug       # outputs the current status
xdebug on    # enables xdebug
xdebug off   # disables xdebug
```

## License
[LICENSE](LICENSE)
{'fraction_non_alphanumeric': 0.12976377952755905, 'fraction_numerical': 0.005354330708661417, 'mean_word_length': 4.089743589743589, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 16, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3033861', 'n_tokens_mistral': 1103, 'n_tokens_neox': 1030, 'n_words': 401}