fix dependent attributes to community php cookbook;