Improve anchor method

Refactor the code and simplify.
Update Composer.

Update composer to latest version.
Update Utf8/Patchwork to v1.1.18
Update to PSR-4
Set default value to empty array
Move private methods to public.

Not sure why these were private, they need to be public.
Rewrite the checkbox(es) method(s)