Custom signing example in PHP