定制 milanpasic92/phapi 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

milanpasic92/phapi

Composer 安装命令:

composer require milanpasic92/phapi

包简介

Phalcon API skeleton app

README 文档

README

Phapi is a open-source skeleton app built for fast bootstraping lightweight Phalcon PHP Rest APIs.

In its core it uses \Phalcon\Mvc\Micro() and is heavily dependent on Phalcons dependency injection container, it is dockerized and comes with mysql server and portainer app for monitoring services. Uses a .env for handling all app configurations.

It provides skeleton project structure and few common needed modules and components for APIs:

  • Rest wrapper around request and response objects
  • Routing component
  • Exceptions and error handling
  • Logger (currently supports slack and loggly agents)
  • Profiler
  • ACL
  • Repository layer (with some limited in-memory caching layer)
  • JWT auth implementation for issuing and/or verifying tokens
  • EventsManager
  • Registry
  • Redis jwt blacklist
  • *Model caching layer via annotations

As it relies heavily on phalcon4, please check the docs: https://docs.phalcon.io/4.0/en/introduction

The project uses custom Dockerfile for building the app and managing all sys dependencies. The base image is debian 10, and php and phalcon versions are customizable.

The project implements open-source JSON:API specification and all response/requests formats have been structured per: https://jsonapi.org/format/

more details to come.

Dev Info:

Remember to run composer-update.sh (before going docker-compose up) if you use default volumes mapping that is already done in docker-compose.yml file.

统计信息

  • 总下载量: 1.03k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 9
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: mit
  • 更新时间: 2021-03-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固