Make copyright/license consistent in component php

And add defined or die where missing.