Rmm727/Rajkumar-dusad- ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple PHP command line tool for Termux and Linux that can look up IP address details using ip api.
I want it to install cleanly from the terminal, add a command like trace and ip-tracer, and let me run it in a couple of ways. One mode should show info about my own IP, and another should accept a target IP address and print useful details like location and network info. If I just run the command with no arguments, it should show a short help message with the available options.
Please make it feel like a small real utility, with an install script and the main executable wired up so it works after setup. Keep it lightweight and easy to use from a phone terminal or a normal Linux shell. If you need current details from the API or best practices, look them up online and make it work reliably.