Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kleninmaxim authored Dec 9, 2022
1 parent af0d198 commit 0ae803f
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ make
sudo make install
```

In the directory `/etc/php/8.0/mods-available` create a file `aeron.ini` with the content `extension=aeron.so`
Run command `sudo phpenmod -v8.0 aeron`

Check aeron version:
```shell
php --ri aeron
```

If the installation is successful, the `aeron.so` file will be created and placed in
PHP [module directory](https://www.php.net/manual/ru/ini.core.php#ini.extension-dir). You will need to add
line `extension=aeron.so` in `php.ini` before using this module.
Expand All @@ -89,9 +97,9 @@ often contain a `phpize` command with the appropriate header files for building

For more information, use the **phpize --help** command.

## Использование
# Usage

### Отправка сообщений
### Send Message

```php
<?php
Expand All @@ -107,8 +115,7 @@ $result = $publisher->offer(message: 'Hello, World!');
$publisher->close();
```

### Получение сообщений

### Get Message
```php
<?php

Expand All @@ -128,7 +135,3 @@ $subscriber = new Subscriber(
$fragments_read = $subscriber->poll();
$subscriber->close();
```

## Руководство пользователя

https://github.com/RoboTradeCode/aeron-php/wiki/Руководство-пользователя

0 comments on commit 0ae803f

Please sign in to comment.