10個最好的PHP工具用于分析和解析PHP代碼
1. PHPMD</h2>
1. PHPMD</h2>
PHPMD is an easy to configure, user-friendly front-end for the raw
metrics that PHP Depend measures. It looks for several potential
problems in your code, including possible bugs, suboptimal code, unused
parameters, and more.
2. PHPCPD</h2>
2. PHPCPD</h2>
PHPCPD is a Copy/Paste Detector (CPD) for PHP code. If you have to start
working on a big project that’s been either abandoned before or follows
an old way of programming, then this is the one tool to help you
analyze code to avoid having repetitive functions and calls all over
your code base. It’s easy to setup and can analyze a project as big as
WordPress in less than a minute.
3. Parsedown</h2>
3. Parsedown</h2>
Parsedown is a Markdown parser built with PHP to include in your apps.
It’s fast and consistent, uses GitHub-flavored Markdown, and offers a
Markdown Extra extension.
4. PHPCheckStyle</h2>
4. PHPCheckStyle</h2>
PHPCheckstyle is an open-source tool that helps PHP programmers adhere
to certain coding conventions. The tool checks the input PHP source code
and reports any violations against the given standards. It’s very
useful for those who’re just starting out and need an easy way to get
introduced to the World of PHP testing and analysis. The reports are
concise and easy to understand.
5. Php Sandbox</h2>
5. Php Sandbox</h2>
A full-scale PHP 5.3.2+ sandbox class that utilizes PHPParser to prevent
sandboxed code from running unsafe code, It also utilizes
FunctionParser to disassemble callables passed to the sandbox, so that
PHP callables can also be run in sandboxes without first converting them
into strings.
6. PHP Markdown</h2>
6. PHP Markdown</h2>
This is a library package that includes the PHP Markdown parser and its
sibling PHP Markdown Extra with additional features. Markdown is a
text-to-HTML conversion tool for web writers. Markdown allows you to
write using an easy-to-read, easy-to-write plain text format, then
convert it to structurally valid XHTML (or HTML).
7. Sabberworm</h2>
7. Sabberworm</h2>
A Parser for CSS Files written in PHP. Allows extraction of CSS files
into a data structure, manipulation of said structure and output as
(optimized) CSS.
8. PHP Analyzer</h2>
8. PHP Analyzer</h2>
PHP Analyzer performs the same analyses that a compiler would like for
example type inference or other flow analyses, ensuring that every line
of code and every potential execution path are tested. This particular
analyzer works within type, flow and other similar analyses, the output
is a solid report on how to improve your code and deal with bugs.
9. PHP Textile</h2>
9. PHP Textile</h2>
PHP-Textile is a modern Textile markup language parser for PHP. Textile
is a humane web text generator that takes lightweight, readable,
plaintext-like markup language and converts it into well formed HTML.
10. PHP HTML Parser</h2>
10. PHP HTML Parser</h2>
PHPHtmlParser is a simple, flexible, html parser which allows you to
select tags using any css selector, like jQuery. The goal is to assiste
in the development of tools which require a quick, easy way to scrap
html, whether it’s valid or not!