Skip to content

Commit e84f7cd

Browse files
luizcmarinvjik
andauthored
Fix docs (#64)
Co-authored-by: Sergei Predvoditelev <sergei@predvoditelev.ru>
1 parent 6667286 commit e84f7cd

3 files changed

Lines changed: 52 additions & 27 deletions

File tree

README.md

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The package provides message storage backend based on PHP arrays to be used with
2323

2424
## Installation
2525

26-
The package could be installed with composer:
26+
The package could be installed with [Composer](https://getcomposer.org):
2727

2828
```shell
2929
composer require yiisoft/translator-message-php
@@ -100,36 +100,17 @@ The following structure will be created after writing:
100100
🗎 messageCategory.php
101101
```
102102

103-
## Testing
103+
## Documentation
104104

105-
### Unit testing
105+
- [Internals](docs/internals.md)
106106

107-
The package is tested with [PHPUnit](https://phpunit.de/). To run tests:
108-
109-
```shell
110-
./vendor/bin/phpunit
111-
```
112-
113-
### Mutation testing
114-
115-
The package tests are checked with [Infection](https://infection.github.io/) mutation framework with
116-
[Infection Static Analysis Plugin](https://github.com/Roave/infection-static-analysis-plugin). To run it:
117-
118-
```shell
119-
./vendor/bin/roave-infection-static-analysis-plugin
120-
```
121-
122-
### Static analysis
123-
124-
The code is statically analyzed with [Psalm](https://psalm.dev/). To run static analysis:
125-
126-
```shell
127-
./vendor/bin/psalm
128-
```
107+
If you need help or have a question, the [Yii Forum](https://forum.yiiframework.com/c/yii-3-0/63) is a good place for that.
108+
You may also check out other [Yii Community Resources](https://www.yiiframework.com/community).
129109

130110
## License
131111

132-
The Yii Translator PHP Message Storage is free software. It is released under the terms of the BSD License. Please see [`LICENSE`](./LICENSE.md) for more information.
112+
The Yii Translator PHP Message Storage is free software. It is released under the terms of the BSD License.
113+
Please see [`LICENSE`](./LICENSE.md) for more information.
133114

134115
Maintained by [Yii Software](https://www.yiiframework.com/).
135116

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"issues": "https://github.com/yiisoft/translator-message-php/issues?state=open",
1515
"forum": "https://www.yiiframework.com/forum/",
1616
"wiki": "https://www.yiiframework.com/wiki/",
17-
"irc": "irc://irc.freenode.net/yii",
17+
"irc": "ircs://irc.libera.chat:6697/yii",
1818
"chat": "https://t.me/yii3en",
1919
"source": "https://github.com/yiisoft/translator-message-php"
2020
},

docs/internals.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Internals
2+
3+
## Unit testing
4+
5+
The package is tested with [PHPUnit](https://phpunit.de/). To run tests:
6+
7+
```shell
8+
./vendor/bin/phpunit
9+
```
10+
11+
## Mutation testing
12+
13+
The package tests are checked with [Infection](https://infection.github.io/) mutation framework with
14+
[Infection Static Analysis Plugin](https://github.com/Roave/infection-static-analysis-plugin). To run it:
15+
16+
```shell
17+
./vendor/bin/roave-infection-static-analysis-plugin
18+
```
19+
20+
## Static analysis
21+
22+
The code is statically analyzed with [Psalm](https://psalm.dev/). To run static analysis:
23+
24+
```shell
25+
./vendor/bin/psalm
26+
```
27+
28+
## Code style
29+
30+
Use [Rector](https://github.com/rectorphp/rector) to make codebase follow some specific rules or
31+
use either newest or any specific version of PHP:
32+
33+
```shell
34+
./vendor/bin/rector
35+
```
36+
37+
## Dependencies
38+
39+
This package uses [composer-require-checker](https://github.com/maglnet/ComposerRequireChecker) to check if
40+
all dependencies are correctly defined in `composer.json`. To run the checker, execute the following command:
41+
42+
```shell
43+
./vendor/bin/composer-require-checker
44+
```

0 commit comments

Comments
 (0)