Skip to content

Commit

Permalink
Add requirements section to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
devanych committed Jan 28, 2022
1 parent c754c04 commit 48c6531
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Expand Up @@ -17,12 +17,17 @@

This package provides the Database target for the [yiisoft/log](https://github.com/yiisoft/log) library.

## Requirements

- PHP 7.4 or higher.
- `PDO` PHP extension.

## Installation

The package could be installed with composer:

```
composer require yiisoft/log-target-db
composer require yiisoft/log-target-db --prefer-dist
```

## General usage
Expand Down Expand Up @@ -71,6 +76,8 @@ You need to set up a database connection and run this console command to create

See [Yii guide to logging](https://github.com/yiisoft/docs/blob/master/guide/en/runtime/logging.md) for more info.

## Testing

### Unit testing

The package is tested with [PHPUnit](https://phpunit.de/). To run tests:
Expand Down
1 change: 1 addition & 0 deletions composer.json
Expand Up @@ -21,6 +21,7 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"ext-pdo": "*",
"php": "^7.4|^8.0",
"yiisoft/db": "^3.0@dev",
"yiisoft/log": "^1.0",
Expand Down

0 comments on commit 48c6531

Please sign in to comment.