[php] replace create_ functions with edn datastructures