changing how the php package resource is defined