Codeine phosphate is an opioid medicine.It can be particularly useful when painkillers such as paracetamol and ibuprofen have not been effective. It works by binding to certain tiny areas, called opioid receptors, in your central nervous system (brain and spinal cord). This leads to a decrease in the way you feel pain and your reaction to pain