Download the PHP package kveldscholten/kasapi-php without Composer
On this page you can find all versions of the php package kveldscholten/kasapi-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kveldscholten/kasapi-php
More information about kveldscholten/kasapi-php
Files in kveldscholten/kasapi-php
Package kasapi-php
Short Description Manage your All-Inkl account with the KAS API for PHP
License MIT
Homepage https://github.com/kveldscholten/kasapi-php
Informations about the package kasapi-php
kasapi-php
Manage your All-Inkl account with the KAS API for PHP
All-Inkl.com provides an API for automated access to all your accounts, settings, (sub-)domains, databases, cronjobs, mail accounts, ... This API is called the KAS API. To learn more about it, visit the official KAS API Documentation. There are also some example forms to try out.
This is a PHP implementation of the API, which provides simple access to all functions provided by the API.
Requirements
Installation
The recommended installation method is to use Composer. This software is available at Packagist.
Alternatively you can clone the following Git repository (git clone https://github.com/kveldscholten/kasapi-php.git
, see below).
Usage
Now, we will take a closer look at how this API works.
Whenever you want to use the API, you need to create a KasConfiguration object first. This is done easily:
$login
is quite self explaining. The KAS API allows for different types of authentication. Thus, you need to specify an authentication type and the corresponding authentication data. Have a look at the documentation of All-Inkl to obtain a list of possible authentication methods.
As an example, assume you want to use plain
as authentication method. In this case, $authType
simply would be plain
, and $authData
should be set to the plain Password of your KAS account. Assuming your login is w0123456
and your password is password
, the following line would create the correct credential object:
Next, you need to create an KasApi object to operate on:
On this object, you can call any API method specified in the KAS documentation. Alternatively, you can have a look at the KasApi class.
Examples from the KasApi class might look like this:
This array specifies which API functions you may call and which parameters to pass. The !
suffix means that this parameter is required and has to be specified (e.g. zone_host!
), all other parameters are optional (e.g. domain_name
).
So if you look at get_dns_settings
above, you see that a call like
is perfectly valid.
Usage without Composer
Here's an example of how to use the API if you just git clone
this repository:
(Place this file in the parent directory of the src
directory.)
Feedback? Issues?
If you have any feedback, please provide it as comment or create an issue.
Credits
- Elias Kuiter created
kasapi-php
to provide an easy way to access All-Inkl's public API. - Daniel Herrmann as well for making big extensions to the API (such as streamlining the classes, correcting some errors and adding Composer integration).
License
kasapi-php is available as open source under the terms of the MIT License.
All versions of kasapi-php with dependencies
ext-json Version *
ext-soap Version *