To simplify API calls etc. I created a separate GitHub repository to have a collection of phpipam API clients for different languages etc. If you created a client and want to share it head over to https://github.com/phpipam/phpipam-api-clients and share yours !
To start I created a php class to work as API client, now available in repo in php-client folder.
https://github.com/phpipam/phpipam-api-clients/tree/master/php-client
It supports all API calls, also encrypted requests are supported by setting $api_key variable in config file. Supported output formats are json/xml/array/object.
Here is a short example of working with client.
Here is a short example how to get details for specific section:
<?php
include config file and api client class file
require("api-config.php");
require("class.phpipam-api.php");
# init object with settings from config file or specify your own
$API = new phpipam_api_client ($api_url, $api_app_id, $api_key, $api_username, $api_password, $result_format);
# debug - output curl headers it some problems occur
$API->set_debug (false);
# execute call
$API->execute ("GET", "sections", array(5), "", $token_file);
# ger result
$result = $API->get_result();
phpipam version 1.2.1 was released today. This is a bugfix release, addressing the following issues:
Enhancements: ---------------------------- + French translation updated to verson 1.2; + German translation updated to verson 1.2; Bugfixes: -------- + Fixed upgrade bug that selected invalid auth method for AD/LDAP users; + Fixed LDAP problems after 1.2 upgrade; + Fixed PowerDNS Slave with multiple masters delimiter error; + Fixed owerDNS PTR records not being updated automatically; + Fixed csrf cookie bug when editing folder; + Fixed csrf cookie bug when truncationg subnet; + Fixed invalid code for API crypt method; + Fixed strange headings font display in Firefox; + Fixed invalid proxy settings in config.dist.php; + Fixed search same hostnames in db link form address table; + Fixed import subnet bug caused by fw object; + Fixed Subnet Import (Preview button > no action); Security Fixes: ---------------------------- + Fixed security issues introduced in 1.2;
There is no database change, so just replace phpipam directory and copy over config.php.
br
Miha
Dear all, I am happy to announce new release of phpipam IP address management – version 1.2.
For this release backend code was completely rewritten, for database connections now pdo has replaced mysqli, so make sure you php supports pdo and pdo_mysql before upgrading. It also fixes lots of bugs, parametized SQL queries and brings lots of new features, most important are:
And much more. You can find full changelog below, please read it.
If you find phpIPAM useful for your company donations would be highly appreciated
You can demo it here: http://demo.phpipam.net/
You can download it on sourceforge site: phpipam-1.2 or on github.
Before upgrading make sure you first backup current database, you can follow upgrade guide on our site.
Some screenshots:
Special thanks to all the people submitting bug reports, translators and feature testers!
Full changelog for this release is:
== 1.20 New features: ------------ + Added multiple simultaneous authentication methods (Apache, AD, LDAP, Radius, NetIQ); + Added fping scanning support; + Added selectable scanning type (ping/pear/fping); + Added L2 Continue reading
I have received some requests for running phpipam on synology, I personally don’t use it, but if you do you will find this useful.
Apparently the problem is in missing GMP php extension, you can find it here, along with instructions:
http://forum.synology.com/enu/viewtopic.php?f=34&t=101226&p=401309#p401309
thanks to Ferdinand for providing extension.
br