dev-master
9999999-dev http://github.com/bingemer/InwxBundleA Symfony bundle to use the inwx api (Domrobot class https://github.com/inwx/php-client)
MIT
by Jörg Bingemer
api symfony inwx
A Symfony bundle to use the inwx api (Domrobot class https://github.com/inwx/php-client)
Add the package to your composer.json file, (*2)
"bingemer/inwxbundle": "dev-master",
Add this to app/AppKernel.php, (*3)
<?php public function registerBundles() { $bundles = array( ... new Bingemer\InwxBundle\BingemerInwxBundle(), ); ... return $bundles; }
Add the following parameters to parameters.yml, (*4)
parameters: ... inwx_user: username inwx_pass: password inwx_url: 'https://api.domrobot.com/xmlrpc/' inwx_locale: en
In your Controller get the service:, (*5)
$domrobot = $this->get('bingemer_inwx_bundle');
Use the functions provided to create an A entry (4th parameter is entry type which defaults to 'A'):, (*6)
$result = $domrobot->createRecord('hostname w/o domain', 'ip-address', 'domain');
update record:, (*7)
$result = $domrobot->updateRecord('inwx_id, 'ip-address');
delete record:, (*8)
$result = $domrobot->deleteRecord('inwx_id);
The result array is 1:1 from the original Domrobot class documented here: API DOC, (*9)
In case of my createRecord() function, the "inwx_id" is contained in the $result., (*10)
The original Domrobot class can be found here: Inwx Domrobot Class, (*11)
More information and classes for other languages can be found here: https://www.inwx.de/en/offer/api, (*12)
This is my first symfony bundle, if you have any problems or found mistakes I made please tell me ;), (*13)
A Symfony bundle to use the inwx api (Domrobot class https://github.com/inwx/php-client)
MIT
api symfony inwx