PHP Classes

How to Use a PHP IP Address Change Class to Update Local Configuration Files Using the Package Change IP: Change the IP address in configuration files

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2025-03-09 (Yesterday) RSS 2.0 feedNot yet rated by the usersTotal: Not yet counted Not yet ranked
Version License PHP version Categories
changeip 1.0The PHP License5Networking, PHP 5, Tools, Unix, Confi..., G...
Description 

Author

This package can change the IP address in configuration files.

It can determine what is the current IP address using shell commands.

The package can also update configuration files to use the current IP address.

Currently, it can scan given directories to find .env and launch.json files to update the IP address.

Picture of Matheusz Maydana
  Performance   Level  
Name: Matheusz Maydana <contact>
Classes: 5 packages by
Country: Brazil Brazil
Innovation award
Innovation award
Nominee: 2x

Documentation

Change IP

Esse repositório foi criado para resolver um problema que EU tive.

Eu levo meu computador TODOS os dias para empresa e para casa, os IPs mudam e é necessário alterar o IP dos projetos para eles funcionarem, eu dou manutenção em vários projetos sendo então um trabalho muito chato alterar os IPS manualmente.

Por isso então decidi criar esse script que faz isso por mim, fiz com que ele executasse ao abrir o terminal.

nano ~/.bashrc

na última linha adicione o comando executavel.

/usr/bin/php /caminho/para/o/projeto/src/index.php

Com isso, toda vez que abrir o terminal irá executar o script.


  Files folder image Files (2)  
File Role Description
Files folder imagesrc (1 file)
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (2)  /  src  
File Role Description
  Accessible without login Plain text file index.php Appl. Change IP address script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads  
 100%
Total:0
This week:0