Yep, you read that right! It is already possible to integrate Kin in PHP, Javascript, Ruby, Go and 51 other programming languages. This means that yes, you can create a Wordpress plugin and do all sorts of other wonderful stuff with Kin.

It is quite simple to set up, because the Kin bootstrap server is created with Swagger. Here is a step by step plan to get Kin working in your favourite programming language. I will use PHP here as an example, but it generally applies to all languages supported by Swagger.

Step 1: Set up a Kin bootstrap server

This will serve as your backend Kin server. It contains the API to check payments, send earns, etc. For a developer this is quite simple to do as it just uses Docker. The bootstrap repository is located here. If you need a step-by-step manual, follow my part 6 of the Android tutorial series.

Step 2: Generate the client SDK from Swagger

If you don’t know what Swagger is, check out their website. It’s basically a standard to define APIs. Because all Swagger APIs have the same definition file structure, there are standardised SDK generators. This is precisely what we are going to do. The Kin bootstrap server Swagger yaml file can be accessed here.

In addition, you need to set the base url to your Kin bootstrap server. You can do this by adding the “host” parameter in the yaml file and updating the “schemes” parameter to either “https” or “http” (whatever you are using).

Update the base url with your Kin bootstrap server endpoint

Next, open the “generate client” menu and click on the language you want to use:

You will get a zip file with the files SDK. Unzip the file and follow the steps in the README.md.

Step 3: install the SDK (PHP) and test

Following the generated README should be sufficient, it even generates a “docs” folder with documentation tailored to your Kin server.

First, install composer if you don’t have it yet. Then navigate to the downloaded code and type “composer install” to install the SDK. It should generate a “vendor” folder with a bunch of stuff in it.

That’s basically everything! You can now write PHP code to communicate with Kin: send payments, get balance information, etc. Here’s an example that gets the blockchain status. Check the docs folder however for all endpoints, code samples, etc.

Have fun!

Please note that this allows you to create a connection with the Kin blockchain, but it doesn’t let you create wallets locally in a web browser for example. For this, you still need the official SDKs.