I haz script for that: https://bitbucket.org/AD7six/php-tools