?? ??? :
SPHINX ??? ReadTHEDOCS? ?????.
SPHINX? ???? ReadThedocs? ???? REST ? Markdown ??? ???? ?? PHP ???? ??? ?? ?? ? ????. ?? ?? ?? : ???? ??? ?????? ??? ???? ??? ??? ??? ????? ???? ??? ???? ?? ?? ?????? ???? ?? ????.
- ??? ?? ?? :
- ?? ? ??? ?? ??? ??? ????? ??? ??? ??????. PHP ?? ?? ? ??? ?? : PHP ?? ?? ???? ??? ??? PHP ?? ??? ???? ?? ??? ?? ? ?? ???? ????? ?? ??? ?? : ?? ??. READTHEDOCS ?? ? ?? : ?? ????? ?? ? ? ????? readthedocs? ??? ???? ?? ??? ?????.
-
READTHEDOCS? ???? ?? ???? ?? ??? ??????. ?? ?? ? ??? ???? ????? ???? ?? ?? ? ? ????? ?? ???? ? ? ????.
?? ?? : -
?? ??? Sphinx ?? ??? ???? ?? ? ? ????.Quick Startup? ?? ? ? ?? ? PHP ?? ???? ??? : ?? html ?? : sphinx_rtd_theme
??
-
???? ?? :
READTHEDOCS? ?? ????? ????? ????? ????? ? ???? ???????. ??? ??? ????? ? ??????.sphinxcontrib-phpdomain
?? ?? ?? : -
??? ???? ??? ??? ?? ?? ??? ?? ???? ?? ? ? ????. ??? ????? ? ?? ???? ??? ??? ???? ?? ????. ??? ???? ???? ????? ??? ?? ??????. ??? ?? ?? :
??????? ?? ?? ?? ?? (????? )? ???????. ?? ???
PHP ?? ?? ?? :
install PHP ?? ?? ??? ?????? ?? ??? ??? ?????.
<strong>
</strong>
source/conf.py
?? ? ??? php ?? ?? :
?? ???? : sudo pip install sphinx sphinx-autobuild sphinx_rtd_theme sphinxcontrib-phpdomain
mkdir docs
cd docs
sphinx-quickstart
wget https://gist.githubusercontent.com/Swader/b16b18d50b8224f83d74/raw/b3c1d6912aefc390da905c8b2bb3660f513af713/requirements.txt
<p>? ?? ??? ???? ??? GitHub ?? ?? ??? ?????.
<img src="/static/imghw/default1.png" data-src="https://img.php.cn/upload/article/000/000/000/173975942118201.jpg" class="lazy" alt="Using Sphinx for PHP Project Documentation " />
</p> <<> <p>
<strong> <<> ??? ?? ?? : <?? ??> <?? ??>
Sphinx? REST ? Markdown? ?????. ?? ??? ???? ?? <?? ??> ???? ???? <?? </strong> : <?? ??>? ??????.
</p>
<p> <<> ReadTheCs ?? : <?? ??> <code>sphinxcontrib-phpdomain
sudo pip install sphinxcontrib-phpdomain
conf.py
<<> READTHEDOCS EXTENSION : ? ??> extensions = ["sphinxcontrib.phpdomain"]
??? ????. <<> faqs : ? ??>
<<> (??? ?? ?? ???? ?? ????? ????? ????? ??? ?? ??? FAQ ??? ??? ?????. ??? ?? FAQ ??? ??? ??? ? ????.) > conf.py
? ??> <<> ?? :
sed -i '/extensions = \[\]/ c\extensions = \["sphinxcontrib.phpdomain"\]' source/conf.py echo ' import sphinx_rtd_theme html_theme = "sphinx_rtd_theme" html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] # 設(shè)置PHP語法高亮 from sphinx.highlighting import lexers from pygments.lexers.web import PhpLexer lexers["php"] = PhpLexer(startinline=True, linenos=1) lexers["php-annotations"] = PhpLexer(startinline=True, linenos=1) primary_domain = "php" ' >> source/conf.py
? ??? PHP ???? ??? ???? ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

PHP ?? ??? ?? ???? ?? ? ????? ??? ?????. 1. ?? ??? ??? ??? ??? ? ? ??? ??? ??? ?? ?? ??? ???? ???????. 2. ?? ??? ???? ???? ? ?? ????? ?? ?? ?? ??? ?????. 3. $ _get ? $ _post? ?? Hyperglobal ??? ?? ???? ?? ??? ? ??? ??? ??????? ???????. 4. ?? ?? ?? ???? ?? ?? ?? ??? ?????? ?? ??? ??? ?? ??? ???????. ??? ??? ????? ??? ??? ?? ???? ????? ? ??? ? ? ????.

PHP ?? ???? ???? ????? ?? ? ??? ???? ?? ?? ? ??? ???? ?? ??? ?????? ??? ??? ? ? ???????. 1. ??? ?? CSRF? ???? ?? ??? ??? ???? ?????? ??? ???? FINFO_FILE? ?? ?? MIME ??? ?????. 2. ??? ??? ??? ???? ??? ?? ??? ?? ? WEB ????? ??? ???? ??????. 3. PHP ?? ??? ?? ? ?? ???? NGINX/APACHE? ??? ????? ?? ???? ?????. 4. GD ?????? ??? ? ?? ???? ??? ?? ??? ?? ????.

PHP ?? ???? ? ?? ???? ??? ????. 1. // ?? #? ???? ? ?? ??? ???? // ???? ?? ????. 2. ?? /.../ ?? ?? ?? ??? ????? ?? ? ?? ??? ?? ? ? ????. 3. ?? ?? ?? / if () {} /? ?? ?? ??? ????? ??? ?? ?? ?? ??? ???? ????? ???? ??? ?? ???? ???? ??? ? ??? ??????.

Ageneratorinphpisamemory- ???? Way-Erate-Overgedatasetsetsbaluesoneatimeatimeatimeatimallatonce.1.generatorsuseTheyieldKeywordTocroadtOpvaluesondemand, RetingMemoryUsage.2

PHP ??? ???? ??? ??? ??? ????? ????. ??? ????? ?? ???? ??? "?? ? ?"??? "?"? ???????. 1. ??? ? ??? ??? DocBlock (/*/)? ?? ?? ??? ???? ??? ? ?? ???? ??????. 2. JS ??? ???? ?? ???? ??? ?? ??? ??? ?????. 3. ??? ?? ?? ?? ??? ???? ????? ????? ???? ?? ????? ???? ? ??????. 4. Todo ? Fixme? ????? ???? ? ? ??? ??? ???? ?? ?? ? ??? ???????. ??? ???? ?? ??? ??? ?? ?? ?? ???? ???? ? ????.

toinstallphpquickly, usexampponwindowsorhomebrewonmacos.1. ??, downloadandinstallxAmpp, selectComponents, startApache ? placefilesinhtdocs.2

PHP??? ???? ??? ?? ?? ????? ???? ??? ?? ??? ??? ?? ? ??? ??? ???? ?????. ???? 0?? ???? ?? ??? ???? ? ?? ???? ?? ?? ? ? ????. MB_SUBSTR? ?? ??? ??? ???????. ? : $ str = "hello"; echo $ str [0]; ?? H; ??? MB_SUBSTR ($ str, 1,1)? ?? ??? ??? ??? ??????. ?? ???????? ???? ??? ???? ?? ???? ?? ?? ???? ?????? ??? ????? ?? ??? ?? ??? ???? ???? ?? ????.

tolearnpheffectical, startBysetTupaloCalserErverEnmentUsingToolslikexamppandacodeeditor -likevscode.1) installxamppforapache, mysql, andphp.2) useacodeeditorforsyntaxsupport.3)) 3) testimplephpfile.next, withpluclucincludechlucincluclucludechluclucled
