How to setup geoip on cyberpanel + php 7.1

I want setup geoip on php 7.1 in cyberpanel but I can not how to. When I setup by command in ssh. Only php 5.4 have extension geoip.
Please help me.
PS: How to setup cyberpanel with only php 7.1? I dont use any other version 7.1 in my cyberpanel