The ServerGrove blog has posted a new tutorial with a selection of useful command line tools to help you in working with your PHP applications. None of them are PHP specific but are Unix-based commands that can help in every day development.
Linux provides a lot of interesting command-line tools that we can use when working with PHP projects. In this post we give you some useful commands.
They include examples of commands that can help with:
- Find all PHP files in the current directory
- Check the syntax of all PHP files in the current directory
- Get the size of each Composer dependency
- Find suspicious PHP files
- Find files with abstract classes
- List PHP settings for the xdebug extension
- Find empty files and/or directories
- List files currently open by a PHP process
As mentioned, most of the tools themselves are not PHP specific but these example commands do relate to things that are more in a PHP context.