limoncello-php/app 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

limoncello-php/app

Composer 安装命令:

composer require limoncello-php/app

包简介

README 文档

README

License

Summary

How to create JSON API application

Limoncello App is a fully featured OAuth 2.0 JSON API quick start application.

Out-of-the-box it has

  • JSON API CRUD operations (create, read, update and delete) for a few sample resources with to-one, to-many and many-to-many relationship types.
  • Support for such JSON API features as resource inclusion, sparse field sets, sorting, filtering and pagination.
  • Database migrations and seedings.
  • OAuth 2.0 server authentication and role authorization.
  • Admin panel for managing users and roles.
  • Cross-Origin Resource Sharing (CORS).
  • JSON API errors.
  • API tests.
  • Web tests.

Supported features

  • Multiple nested paths resource inclusion (e.g. posts,posts.user,posts.comments.user).
  • Filtering and sorting by multiple attributes in resources and its relationships.
  • Supported operators =, eq, equals, !=, neq, not-equals, <, lt, less-than, <=, lte, less-or-equals, >, gt, greater-than, >=, gte, greater-or-equals, like, not-like, in, not-in, is-null, not-null.
  • Pagination works for main resources and resources in relationships. Limits for maximum number of resources are configurable.

Based on

It could be a great start if you are planning to develop JSON API.

Feel free to ask questions and thank you for supporting the project with ⭐.

Installation

1 Create project

$ composer create-project --prefer-dist limoncello-php/app app_name
$ cd app_name

Recommended additional step

$ npm install

or

$ yarn install

2 Run server

Application runs PHP built-in server on port 8080

$ composer serve

Recommended

$ npm serve

or

$ yarn serve

Port could be configured in composer.json or client/webpack/base.config.js

If you use Postman here is a collection of API requests that would work with a local server (reading users, filter users, create users, and etc).

Run in Postman

Here is a Postman screen-shot with the collection opened

Requests in Postman

3 Turn on production mode (optional)

By default the application is installed in development mode (less performance, tests and development libraries are available). Application could be switched into production mode (higher performance, no tests, no development libraries) with command

$ composer build

Performance comparision with other frameworks could be found here and here.

Testing

$ composer test

How-to add Google Auth to the Application

You can find detailed instructions here.

License

MIT license

limoncello-php/app 适用场景与选型建议

limoncello-php/app 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 318 次下载、GitHub Stars 达 85, 最近一次更新时间为 2016 年 05 月 04 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 limoncello-php/app 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 limoncello-php/app 我们能提供哪些服务?
定制开发 / 二次开发

基于 limoncello-php/app 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 318
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 85
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 85
  • Watchers: 5
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-05-04