I am really struggling to get my head around using composer for PHP.
I am trying to use a library that lets me collect basic location info based on the users IP, so the user can see where each of their logged in sessions were initiated, a little like the way facebook does it.
The only documentation for this library (IPinfo.io) is for installing it as a composer package. I’ve tried to go through it myself and find and reference all the dependances manually but each dependance has several more and it has just got the point where I am wasting so much time finding files online and changing other peoples code that it has defeted the whole point of saving time by using an external library in the first place.
I have tried looking into using composer but I dont think it is an option for me,
I do all my php coding in brackets on my desktop PC, and I use a managed shared hosting package which I only have access to via SFTP. All my files are automatically syncronised with the server using an FTP client, where I can then test it in my browser. I don’t have PHP or anything installed on my development PC, but composer seems to require that you have a running PHP server on the PC.
Is there a way to resolve composer dependancies without having a running PHP server in my development environment?