Moved the class so src/ folder and namespaced it. Made it more reusable, and separate from run.php. The run.php file now acts only as executable, to generate the blacklists. Generator and idna-converter are in autoloader-dev and require-dev composer requirements. They are installed when doing compser install but removed for production use if one does composer install --no-dev, as they are only needed for blacklist development. Since the domain.txt file was moved i marked this as a Breaking change, other than that there should be no unintended side-effects.
Motivation and Context
Wanted to make this project's php class more reusable, maybe event split it up more in the future, to make it easier to understand and add new formats.
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[X] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
Description
Moved the class so src/ folder and namespaced it. Made it more reusable, and separate from run.php. The run.php file now acts only as executable, to generate the blacklists. Generator and idna-converter are in autoloader-dev and require-dev composer requirements. They are installed when doing compser install but removed for production use if one does
composer install --no-dev
, as they are only needed for blacklist development. Since the domain.txt file was moved i marked this as a Breaking change, other than that there should be no unintended side-effects.Motivation and Context
Wanted to make this project's php class more reusable, maybe event split it up more in the future, to make it easier to understand and add new formats.
Types of changes
Checklist: