You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/internals.md
+21-5Lines changed: 21 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,22 @@
1
1
# Internals
2
2
3
+
## Development environment
4
+
5
+
For greater ease it is recommended to use docker containers.
6
+
7
+
Run container with memcached directly via command:
8
+
9
+
```shell
10
+
docker run --rm --name yiisoft-cache-memcached-cache --detach --publish 11211:11211 memcached:1.6.23
11
+
```
12
+
13
+
Memcached must be accessible by address `127.0.0.1`. If you use PHP via docker container, run PHP container in network
14
+
of memcached container. Use `docker run` command argument for it:
15
+
16
+
```shell
17
+
--network container:yiisoft-cache-memcached-cache
18
+
```
19
+
3
20
## Unit testing
4
21
5
22
The package is tested with [PHPUnit](https://phpunit.de/). To run tests:
@@ -25,7 +42,7 @@ The code is statically analyzed with [Psalm](https://psalm.dev/). To run static
25
42
./vendor/bin/psalm
26
43
```
27
44
28
-
## Rector
45
+
## Code style
29
46
30
47
Use [Rector](https://github.com/rectorphp/rector) to make codebase follow some specific rules or
31
48
use either newest or any specific version of PHP:
@@ -34,11 +51,10 @@ use either newest or any specific version of PHP:
34
51
./vendor/bin/rector
35
52
```
36
53
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`.
54
+
## Dependencies
40
55
41
-
To run the checker, execute the following command:
56
+
This package uses [composer-require-checker](https://github.com/maglnet/ComposerRequireChecker) to check if all
57
+
dependencies are correctly defined in `composer.json`. To run the checker, execute the following command:
0 commit comments