PHP tutorial to detect code smells in a PHP application using static analysis by using PHP Mess Detector (PHPMD) from the command line or using Docker. (see shortcuts below to key points) In this PHP video Adam Culp uses PHPmd, a command line application, to conduct static analysis and generate a useful report. Adam Culp of Beachcasts programming tutorials will show how to use phpmd from a Docker Container using a Docker Image on Docker Hub. PHPmd is demonstrated on the Concrete5 CMS codebase.
Please * LIKE, COMMENT, AND SUBSCRIBE * - and share with others!
Key Topics:
What are code smells
What is cyclomatic complexity
PHPmd is an application to find code smells in PHP
Different methods to use PHPmd
How to use a Docker image to run PHPmd
For a nice list of equipment I use in my studio, and to support the channel if you make any purchases (doesn't cost you a thing), visit my kit at kit.co: https://kit.co/beachcasts/beachcasts-...
Errata:
Let me know if you notice anything that should be errata
Associated Links:
https://en.wikipedia.org/wiki/Code_smell - Code smells explained
https://www.docker.com/get-started - The place for developers to start with Docker
https://hub.docker.com/r/adamculp/php... - link to the image used to build the Docker container used in this video
https://github.com/phpmd/phpmd - location of the PHPmd tool
https://www.concrete5.org/ - Concrete5 CMS code I'm using in this video
Timeline:
00:00 Video Intro
00:41 What is PHP Mess Detector
01:40 Show Docker image to use on Docker Hub and the command for phpmd
02:45 We analyze the command used to run phpmd using Docker
04:35 Viewing the phpmd results and highlight some key results
05:40 Definition of Cyclomatic Complexity
06:14 Definition of Code Smells
07:40 Definition of NPath Complexity
10:00 Various rulesets available with PHP Mess Detector
Other Beachcasts PHP tech videos you might find interesting:
Measure PHP Code Quality With Static Analysis Using PHPStan • Measure PHP Code Quality With Static Analy...
Critical programming issues preventing a PHP 7 upgrade • Critical programming issues preventing a P...
Behat for beginners functional REST API testing tutorial • Behat for beginners functional REST API te...
Doctrine ORM one-to-many bi-directional association • Doctrine ORM one-to-many bi-directional as...
Doctrine ORM one-to-many self-referencing association • PHP DoctrineORM one-to-many self-referenci...
10 reasons to become a consultant in a consulting business • Top 10 Reasons To Be a Programming Consult...
Zend Framework becomes Laminas project at Linux Foundation • Zend Framework becomes Laminas project at ...
10 bad things about consulting • Top 10 bad things about consulting, why it...
PHPLoc Lines of code static analysis to find PHP code smells • PHPLoc Lines of code static analysis to fi...
Make a List handler middleware • List handler middleware in Zend Expressive...
Make a Delete handler middleware • Delete handler middleware in Zend Expressi...
Make an Update handler middleware • Update handler middleware in Zend Expressi...
Use UUID with Doctrine ORM for DB keys • UUID with Doctrine ORM in Zend Expressive ...
Make a Create handler middlware • Create Handler middleware in Zend Expressi...
Automate Hypermedia creation for PHP REST API • Automate Hypermedia PHP REST API with Doct...
Learn about Hypermedia and how to create it • Creating Hypermedia (HAL) in PHP REST API ...
Doctrine ORM Paginator for PHP REST API • Doctrine ORM Paginator in PHP REST API wit...
Doctrine ORM Entity how to • Create Doctrine ORM Entity and pagination ...
Configure Doctrine ORM • Configure Doctrine ORM and Dbal CLI with c...
Create PHP middlware with Zend Expressive • Create PHP middleware with Zend Expressive...
Configure PhpStorm for PHP development with Docker • PhpStorm setup for PHP web development wit...
Create PHP development environment with docker • PHP web development environment with Docke...
Help through referrals:
Thinking of buying a Tesla electric vehicle? Use this referral link to also get six months of free Supercharging for both of us. Thank you. https://www.tesla.com/referral/tanya2...
I use TubeBuddy to help me manage my YouTube channel. If you're interested, click the following link to check it out. https://www.tubebuddy.com/beachcasts
#Docker #Phpmd #Beachcasts
Sur cette page du site, vous pouvez voir la vidéo en ligne PHP Mess Detector static analysis to find PHP code smells durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Beachcasts Programming Videos 09 mai 2019, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 6,049 fois et il a aimé 83 téléspectateurs. Bon visionnage!