Download the PHP package wazaari/kasapi-php without Composer

On this page you can find all versions of the php package wazaari/kasapi-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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.

Installation

The recommended installation method is to use Composer. This software is available at Packagist.

Just add the following line to the require section of your composer.json:

Alternatively you can clone the following Git repository (git clone https://github.com/waza-ari/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:

$username 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, which could be a hashed password. 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 sha1 as authentication method. In this case, $authType simply would be sha1, and $authData should be set to the sha1 hash of your KAS account. Assuming your username is abcd1234 and your password is password, the following line would create the correct credential object:

This method allows you to authenticate against the KAS API without storing your plain password in a configuration file or database. 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. Notice we omitted the nameserver parameter, which is optional, but we included the zone_host, which is required in every case.

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.)

If you have any feedback, please provide it as comment or issue using GitHub and the URL above.

Changelog

Version 0.5

Version 0.4

Version 0.3

Credits

Elias Kuiter created kasapi-php to provide an easy way to access All-Inkl's public API. Credits go to Daniel Herrmann as well for making big extensions to the API (such as streamlining the classes, correcting some errors and adding Composer integration). Note that the original repository (ekuiter/kasapi-php) is now deprecated, use this repository instead.


All versions of kasapi-php with dependencies

PHP Build Version
Package Version
Requires ext-soap Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wazaari/kasapi-php contains the following files

Loading the files please wait ....