A New Tool for Measuring Lines of Code in PHP
The article introduces a new tool for measuring lines of code in PHP. The author explains that the famous phploc package, which was commonly used for this purpose, has been archived. In search of a replacement, the author decided to use more reliable tooling, such as php-parser. The author shares the prototype package they created, which allows users to measure the size of their PHP projects using lines. The package provides a command that gives a concise output without clutter, making it suitable for blog posts. Additionally, the author mentions that Francisco has added Termwind styling to the package's CLI output. The author encourages readers to try the tool and contribute to its improvement. Overall, this article offers developers a quick and easy solution for measuring lines of code in PHP projects.