Wealthier European countries seem to be moving towards clamping down on this kind of consulting. See IR35 in the UK as an example: https://en.wikipedia.org/wiki/IR35
This is still possible in many European countries, especially less wealthy ones.
I mean, IR35 happened because you could avoid a lot of tax as a contractor. In Ireland however, being a contractor is fine, but you end up basically paying the same tax as an employed person, so the tax authorities don't mind.