https://mamchenkov.net/wordpress/2013/04/29/how-do-you-execute-a-php-method-in-a-class-from-the-command-line/
How do you execute a PHP method in a class from the command line?