code in php for a api with zend Framework 1.12 minimal