Improving cc for fromPHP method