1
0
mirror of https://github.com/danog/php-libtgvoip.git synced 2024-11-30 04:19:26 +01:00

Update README.md

This commit is contained in:
Daniil Gentili 2022-05-04 15:18:18 +02:00 committed by GitHub
parent 413bdbdf43
commit 6129b10d10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,8 @@ Licensed under AGPLV3, created by Daniil Gentili.
This is a PHP extension that wraps the [telegram VoIP library](https://github.com/grishka/libtgvoip), created using php-cpp.
Note: this is a legacy project based on the old libtgvoip library and supports only PHP 7.4, it will be eventually rewritten to make use of the new tgcalls library and PHP 8.0+ with FFI.
## Installation
Install the libopus headers (libopus-dev), openssl headers and the php-cpp headers.
@ -15,7 +17,7 @@ On Ubuntu/debian/any debian-based distro:
```
sudo apt-get install libopus-dev libssl-dev build-essential php$(echo "<?php echo PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION;" | php)-dev && git clone https://github.com/danog/PHP-CPP && cd PHP-CPP && make -j$(nproc) && sudo make install && cd .. && git clone --recursive https://github.com/danog/php-libtgvoip && cd php-libtgvoip && make && sudo make install
sudo apt-get install libopus-dev libssl-dev build-essential php7.4-dev php7.4 && git clone https://github.com/copernicamarketingsoftware/PHP-CPP && cd PHP-CPP && make -j$(nproc) && sudo make install && cd .. && git clone --recursive https://github.com/danog/php-libtgvoip && cd php-libtgvoip && make && sudo make install
```
## Documentation