aliasapi/frame

AliasAPI 是一个 PHP 的微服务框架

0.6.1 2023-04-11 15:21 UTC

This package is auto-updated.

Last update: 2024-09-24 01:54:47 UTC


README

AliasAPI README

WHAT: AliasAPI 是一个使用过程式 PHP 编写的 API 代理微微服务框架。它是一个 Composer 包,被多个松散相关的微服务使用。该微服务架构是一对多,依赖于无状态的网关。

WHY: AliasAPI 简单、稳定、小巧、快速、特定、结构化和安全。

Simple
It uses procedural code which is easier to understand by stakeholders.

Stable
The procedural code is encapsulated in top level, easy to test functions.

Structured
Each directory contains files using namespaces matching the directory names.
Each file contains a single function that matches the filename.
Each function name starts with a verb to describe the action it completes.
Most directories contain a file named "track" that calls the functions.

Small
The AliasAPI footprint is small so that it works on free shared hosts.
The functionality is limited to facilitating client-server transmissions.

Swift
The AliasAPI framework makes development time more swift and simple.
A microservice is created by adding a few functions to the framework.
PHP libraries are simplified since they are called by existing code.

Specific
AliasAPI calls specific functionality from the often bloated libraries.
Typically, the logic is limited to create, read, update, and delete.

Secure
The client-server transmissions are signed and encrypted.
The security relies on a library developed by security experts.

WHERE

Packagist https://packagist.org.cn/packages/aliasapi/frame
BitBucket https://bitbucket.org/AliasAPI/framework/src/master

HOW: 要安装 AliasAPI,下载并安装一个依赖于 AliasAPI 的库。:) 或者,在项目的 composer.json 中包含 "aliasapi/frame": "dev-master"。或者,运行 git clone git@bitbucket.org:AliasAPI/frame.git