DynAli PHP Library: allows interaction with DynAli's PHP NICE JSON Api.
Includes library which can be used in any PHP code (in the lib/
folder) and a
simple executable which can be used to check hostname's status, update the ip,
change password or manipulate local storage of saved hostnames.
To install using composer please just type:
composer require dynali/dynali-php
in your project's folder
I suggest to use tagged releases and semantic versioning.
Later just create an instance of the main class in your project:
$client = new Dynali\DynaliClient();
If you want to use the repository as a standalone application just clone or download the repository:
git clone https://github.com/dynali/dynali-php.git
and execute:
composer install
to load all vendors.
TODO
You can find the main executable in the bin/
folder. It currently supports commands:
ip
which returns your external IP as detected by Dynaliinstall
which returns a command which you can add to crontab in order to make updates automatically every minuteadd
, inserts hostname's details into local storage (basicdynali.csv
file created locally in the same folder)remove
, removes hostname's details from local storagestatus
, provides details about domain's status as an instance of theDynaliStatus
entityupdate
, updates the IP for the given hostnameupdate-all
, updates IPs for all of the hostnames in the local storagelist
, lists domains in the local storagechangepassword
, allows to change password for a particular hostname
Sample usage:
./dynali add myname.dynali.net bartoszp SuperSecretPasSwOrD123
- improve README.md
- provide unit tests
- allow passing of manually entered IP using the cli tool
Please use the issues or pull requests functionalites of Github.