Skip to content

Latest commit

 

History

History
324 lines (252 loc) · 12.6 KB

README-EN.md

File metadata and controls

324 lines (252 loc) · 12.6 KB

Easy Tips

php mysql redis patterns algorithm data-structure network docker


A knowledge storage for the PHP developer

Remark

flag meaning
not-start not start
doing ing
α for reference only
done complete
fixing fix

目录

Test

Design Pattern

run: php patterns/[folder-name]/test.php

for example,

chain of responsibility: run, php patterns/chainOfResponsibility/test.php

result:

request 5850c8354b298: token pass~
request 5850c8354b298: request frequent pass~
request 5850c8354b298: params pass~
request 5850c8354b298: sign pass~
request 5850c8354b298: auth pass~

Algorithm

run: php algorithm/test.php [algorithm name|help]

for example,

bubble sort: run, php algorithm/test.php bubble

result:

==========================bubble sort=========================
Array
(
    [0] => 11
    [1] => 67
    [2] => 3
    [3] => 121
    [4] => 71
    [5] => 6
    [6] => 100
    [7] => 45
    [8] => 2
)
=========up is the origin data==================below is the sort result=============
Array
(
    [0] => 2
    [1] => 3
    [2] => 6
    [3] => 11
    [4] => 45
    [5] => 67
    [6] => 71
    [7] => 100
    [8] => 121
)

Redis

run: php redis/test.php [name|help]

for example,

pessimistic-lock: run, php redis/test.php p-lock

result:

exexute count increment 1~

count value: 1

Error correction

If you find some where is not right, you can make a issueissueor a pull request,I will fix it,THX~

Contributors

This project exists thanks to all the people who contribute.

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]