Skip to content

Commit fb08766

Browse files
authored
Docs folder standardization and other fixes (#92)
1 parent 5406a3f commit fb08766

File tree

3 files changed

+61
-34
lines changed

3 files changed

+61
-34
lines changed

LICENSE.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
Copyright © 2008 by Yii Software (https://www.yiiframework.com/)
1+
Copyright © 2008 by Yii Software (<https://www.yiiframework.com/>)
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without
55
modification, are permitted provided that the following conditions
66
are met:
77

8-
* Redistributions of source code must retain the above copyright
8+
* Redistributions of source code must retain the above copyright
99
notice, this list of conditions and the following disclaimer.
10-
* Redistributions in binary form must reproduce the above copyright
10+
* Redistributions in binary form must reproduce the above copyright
1111
notice, this list of conditions and the following disclaimer in
1212
the documentation and/or other materials provided with the
1313
distribution.
14-
* Neither the name of Yii Software nor the names of its
14+
* Neither the name of Yii Software nor the names of its
1515
contributors may be used to endorse or promote products derived
1616
from this software without specific prior written permission.
1717

README.md

+12-30
Original file line numberDiff line numberDiff line change
@@ -124,39 +124,14 @@ $middleware->withContentFormatters([
124124
]);
125125
```
126126

127-
## Testing
127+
## Documentation
128128

129-
### Unit testing
129+
- [Internals](docs/internals.md)
130130

131-
The package is tested with [PHPUnit](https://phpunit.de/). To run tests:
131+
## Support
132132

133-
```shell
134-
./vendor/bin/phpunit
135-
```
136-
137-
### Mutation testing
138-
139-
The package tests are checked with [Infection](https://infection.github.io/) mutation framework with
140-
[Infection Static Analysis Plugin](https://github.com/Roave/infection-static-analysis-plugin). To run it:
141-
142-
```shell
143-
./vendor/bin/roave-infection-static-analysis-plugin
144-
```
145-
146-
### Static analysis
147-
148-
The code is statically analyzed with [Psalm](https://psalm.dev/). To run static analysis:
149-
150-
```shell
151-
./vendor/bin/psalm
152-
```
153-
154-
## License
155-
156-
The Data response is free software. It is released under the terms of the BSD License.
157-
Please see [`LICENSE`](./LICENSE.md) for more information.
158-
159-
Maintained by [Yii Software](https://www.yiiframework.com/).
133+
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.
134+
You may also check out other [Yii Community Resources](https://www.yiiframework.com/community).
160135

161136
## Support the project
162137

@@ -169,3 +144,10 @@ Maintained by [Yii Software](https://www.yiiframework.com/).
169144
[![Telegram](https://img.shields.io/badge/telegram-join-1DA1F2?style=flat&logo=telegram)](https://t.me/yii3en)
170145
[![Facebook](https://img.shields.io/badge/facebook-join-1DA1F2?style=flat&logo=facebook&logoColor=ffffff)](https://www.facebook.com/groups/yiitalk)
171146
[![Slack](https://img.shields.io/badge/slack-join-1DA1F2?style=flat&logo=slack)](https://yiiframework.com/go/slack)
147+
148+
## License
149+
150+
The Yii Data Response is free software. It is released under the terms of the BSD License.
151+
Please see [`LICENSE`](./LICENSE.md) for more information.
152+
153+
Maintained by [Yii Software](https://www.yiiframework.com/).

docs/internals.md

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+
## Rector
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+
## Composer require checker
38+
39+
This package uses [composer-require-checker](https://github.com/maglnet/ComposerRequireChecker) to check if all dependencies are correctly defined in `composer.json`.
40+
41+
To run the checker, execute the following command:
42+
43+
```shell
44+
./vendor/bin/composer-require-checker
45+
```

0 commit comments

Comments
 (0)