Skip to content

Update README.md #126

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ and move it into the `ext/` directory of your PHP installation. Furthermore add

**Unix (PECL)**: Run `pecl install ast` and add `extension=ast.so` to your `php.ini`.

Depending on your `pecl` install you may need to install with elevated permissions, eg `sudo pecl install ast` on Ubuntu. Ubuntu users may prefer to use `sudo apt install php-ast` but note that the version of `ast` may be too old that way.

**Unix (Compile)**: Compile and install the extension as follows.

```sh
Expand All @@ -35,8 +37,9 @@ phpize
make
sudo make install
```
Ubuntu users (and maybe others) can install phpize as part of the php-dev package using `sudo apt install php-dev`. However it is installed you'll need to modifiy `php.ini`:

Additionally add `extension=ast.so` to your `php.ini` file.
Additionally add `extension=[/path/to/]ast.so` to your `php.ini` file.

API overview
------------
Expand Down