> For the complete documentation index, see [llms.txt](https://xlswriter-docs.viest.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xlswriter-docs.viest.me/zhong-wen-jian-ti/install/mac.md).

# Mac

## 安装依赖

```bash
brew install zlib
```

## 编译扩展

```bash
git clone https://github.com/viest/php-ext-excel-export

cd php-ext-excel-export

git submodule update --init

phpize && ./configure --with-php-config=/path/to/php-config --enable-reader

make && make install
```

## 功能测试

```bash
make && make test
```

## 修改 php.ini

```
extension = xlswriter.so
```
