update api usage
declare Params as internal
api rework for param
rely on internal error creation
rework range for more clarity, remove dependency to paramerror
raise php min version
rework range for more clarity, remove dependency to paramerror
remove unused import
change structure of errors to be completely internal