add missing functions to repository php