diff options
| author | StevenWdV <stevenwdv@gmail.com> | 2021-12-17 15:21:53 +0100 |
|---|---|---|
| committer | StevenWdV <stevenwdv@gmail.com> | 2021-12-17 15:24:59 +0100 |
| commit | a47513aeeb728b6316ba6765afdd7e5adbf4f2e3 (patch) | |
| tree | 2ebb3a6936af606b0276f67d4cebb446d60cc610 /wrappers/php/README.md | |
| parent | a4d394a8794a254a102b8fa3bf311d4c59f9e9b5 (diff) | |
Add PHP wrapper, use header for right platform for PHP & Swift, simplify Swift Windows fix
Diffstat (limited to 'wrappers/php/README.md')
| -rw-r--r-- | wrappers/php/README.md | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/wrappers/php/README.md b/wrappers/php/README.md new file mode 100644 index 0000000..776c0ac --- /dev/null +++ b/wrappers/php/README.md @@ -0,0 +1,29 @@ +# PHP Wrapper + +## Requirements + +You will need to install [PHP](https://www.php.net/downloads) 7.4 or later. For testing, you can use dependency +manager [Composer](https://getcomposer.org/doc/00-intro.md) to download PHPUnit. + +Activate the [FFI](https://www.php.net/manual/en/ffi.setup.php) extension (Composer will also warn if you do not have it +enabled). + +## Test etc. + +Test (also installs PHPUnit using Composer and builds shared Go library for current platform): + +```shell +make test +``` + +Only build shared library and copy modified C header for the current platform to the right directory: + +```shell +make install-header +``` + +Or for the specified platform: + +```shell +make install-header GOOS=windows GOARCH=amd64 +``` |
