{"id":10036,"date":"2024-04-21T11:32:57","date_gmt":"2024-04-21T09:32:57","guid":{"rendered":"https:\/\/via-internet.de\/blog\/?p=10036"},"modified":"2024-04-21T16:14:44","modified_gmt":"2024-04-21T14:14:44","slug":"php-okosystem","status":"publish","type":"post","link":"https:\/\/via-internet.de\/blog\/2024\/04\/21\/php-okosystem\/","title":{"rendered":"PHP | \u00d6kosystem"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/phpstan.org\">PHPStan<\/a><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Finds bugs in your code without writing tests. It&#8217;s open-source and free.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/phpmd.org\/\" data-type=\"link\" data-id=\"https:\/\/phpmd.org\/\">PHPMD<\/a>: PHP Mess Detector<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">What PHPMD does is: It takes a given PHP source code base and look for several potential problems within that source. These problems can be things like:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Possible bugs<\/li>\n\n\n\n<li>Suboptimal code<\/li>\n\n\n\n<li>Overcomplicated expressions<\/li>\n\n\n\n<li>Unused parameters, methods, properties<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">PHPMD is a mature project and provides a diverse set of pre defined rules (though may be not as many its Java brother PMD) to detect code smells and possible errors within the analyzed source code. Checkout the\u00a0<a href=\"https:\/\/phpmd.org\/rules\/index.html\">rules section<\/a>\u00a0to learn more about all implemented rules.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/github.com\/PHPCSStandards\/PHP_CodeSniffer\">PHP CodeSniffer<\/a><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/github.com\/phpro\/grumphp\" data-type=\"link\" data-id=\"https:\/\/github.com\/phpro\/grumphp\">GrumPHP<\/a><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/phpro\/grumphp#grumphp\"><\/a>Sick and tired of defending code quality over and over again? GrumPHP will do it for you! This composer plugin will register some git hooks in your package repository. When somebody commits changes, GrumPHP will run some tests on the committed code. If the tests fail, you won&#8217;t be able to commit your changes. This handy tool will not only improve your codebase, it will also teach your co-workers to write better code following the best practices you&#8217;ve determined as a team.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/api-platform.com\">https:\/\/api-platform.com<\/a><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHPStan Finds bugs in your code without writing tests. It&#8217;s open-source and free. PHPMD: PHP Mess Detector What PHPMD does is: It takes a given PHP source code base and look for several potential problems within that source. These problems can be things like: PHPMD is a mature project and provides a diverse set of pre defined rules (though may be not as many its Java brother PMD) to detect code smells and possible errors within the analyzed source code. Checkout the\u00a0rules section\u00a0to learn more about all implemented rules. PHP CodeSniffer PHP_CodeSniffer tokenizes PHP files and detects violations of a defined [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-10036","post","type-post","status-publish","format-standard","hentry","category-allgemein"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/posts\/10036","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/comments?post=10036"}],"version-history":[{"count":2,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/posts\/10036\/revisions"}],"predecessor-version":[{"id":10039,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/posts\/10036\/revisions\/10039"}],"wp:attachment":[{"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/media?parent=10036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/categories?post=10036"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/tags?post=10036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}