Skip to content

interserver/mailbaby-mail-api

Repository files navigation

MailBaby API

API service for accessing the Mail.Baby services.

API Sample Clients

Sample clients for the API are available in many languages

Documentation

Development

This is built on top of Webman, a high performance HTTP Service Framework for PHP based on Workerman.

API Specification

We are utilizing the OpenAPI 3 (formerly known as Swagger) spec for this API. It is basically the next evolution of SOAP API's with well defined functions, parameters, and responses. While there are many editors out there I'm currently using SwaggerHub to do most of the editing of the spec.

Webman Framework

After testing every PHP library out there dealing with concurrent/asynchronous processing many times over the years I've found Workerman to be the overall best. It has proven more stable and by far faster than the alternatives with the one big downside being that its documentation and code comments are all in Chinese. Webman is a fairly recently created web framework on top of Workerman. There had been many previously created frameworks based on workerman and while some were good Webman seemed to hit that perfect balance between ease-of-use and power.

The Chinese documentation is easily readable Using either the auto translate in Chrome or an addon like Translate Web Pages for Firefox.