applyTo: "*/.php"
composer.jsonphpcs.xmlAutomatic fixes can be done with:
composer run-script fix
# or (targeting more than just PHP)
make fix-all
Validation can be done with:
composer test
# or (targeting more than just PHP)
make test-all
Check composer.json scripts for details about available individual commands.
For instance, running a single unit test can be done with:
composer run-script phpunit -- tests/app/Models/SearchTest.php
spl_autoload_register is defined in lib/lib_rss.phpMinimal example:
require dirname(__DIR__) . '/constants.php';
require LIB_PATH . '/lib_rss.php'; //Includes class autoloader