Skip to content

Commit 0ee76d4

Browse files
authored
Docs folder standardization and other fixes (#93)
1 parent 44f34ca commit 0ee76d4

File tree

4 files changed

+63
-36
lines changed

4 files changed

+63
-36
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

+13-31
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ but could be used in other [PSR-11](https://www.php-fig.org/psr/psr-11/) compati
2020
The following are provided:
2121

2222
- Definitions describing services or objects to create. This includes syntax, its validation and resolving it to objects.
23-
- References and dynamic references to point to other definitions. These include additional utility to refer to multiple
23+
- References and dynamic references to point to other definitions. These include additional utility to refer to multiple
2424
definitions at once.
2525

2626
## Requirements
@@ -240,39 +240,14 @@ var_dump($storage->has(EngineMarkOne::class));
240240

241241
`has()` will return `false` even if `EngineMarkOne` exists.
242242

243-
## Testing
243+
## Documentation
244244

245-
### Unit testing
245+
- [Internals](docs/internals.md)
246246

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

249-
```shell
250-
./vendor/bin/phpunit
251-
```
252-
253-
### Mutation testing
254-
255-
The package tests are checked with [Infection](https://infection.github.io/) mutation framework with
256-
[Infection Static Analysis Plugin](https://github.com/Roave/infection-static-analysis-plugin). To run it:
257-
258-
```shell
259-
./vendor/bin/roave-infection-static-analysis-plugin
260-
```
261-
262-
### Static analysis
263-
264-
The code is statically analyzed with [Psalm](https://psalm.dev/). To run static analysis:
265-
266-
```shell
267-
./vendor/bin/psalm
268-
```
269-
270-
## License
271-
272-
The Yii Definitions is free software. It is released under the terms of the BSD License.
273-
Please see [`LICENSE`](./LICENSE.md) for more information.
274-
275-
Maintained by [Yii Software](https://www.yiiframework.com/).
249+
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.
250+
You may also check out other [Yii Community Resources](https://www.yiiframework.com/community).
276251

277252
## Support the project
278253

@@ -285,3 +260,10 @@ Maintained by [Yii Software](https://www.yiiframework.com/).
285260
[![Telegram](https://img.shields.io/badge/telegram-join-1DA1F2?style=flat&logo=telegram)](https://t.me/yii3en)
286261
[![Facebook](https://img.shields.io/badge/facebook-join-1DA1F2?style=flat&logo=facebook&logoColor=ffffff)](https://www.facebook.com/groups/yiitalk)
287262
[![Slack](https://img.shields.io/badge/slack-join-1DA1F2?style=flat&logo=slack)](https://yiiframework.com/go/slack)
263+
264+
## License
265+
266+
The Yii Access is free software. It is released under the terms of the BSD License.
267+
Please see [`LICENSE`](./LICENSE.md) for more information.
268+
269+
Maintained by [Yii Software](https://www.yiiframework.com/).

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"issues": "https://github.com/yiisoft/definitions/issues?state=open",
1212
"forum": "https://www.yiiframework.com/forum/",
1313
"wiki": "https://www.yiiframework.com/wiki/",
14-
"irc": "irc://irc.freenode.net/yii",
14+
"irc": "ircs://irc.libera.chat:6697/yii",
1515
"chat": "https://t.me/yii3en",
1616
"source": "https://github.com/yiisoft/definitions"
1717
},

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)