bedita/bedita 问题修复 & 功能扩展

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

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

bedita/bedita

Composer 安装命令:

composer create-project bedita/bedita

包简介

BEdita API-first content management server app

README 文档

README

Build Status Publish plugins Code Coverage Scrutinizer Code Quality

BEdita 5 is a ready to use back-end API to handle the data of your mobile, IoT, web and desktop applications. It's also an extensible framework to build your custom back-end API via plugins.

It provides a complete content management solution with:

  • a headless HTTP server application with a complete REST API to model, create, modify and retrieve data
  • a default admin web application BEdita Manager

BEdita 5 is built with CakePHP 4 and uses relational DBMS like MySQL, Postgres or SQLite in conjunction with (optional) NoSQL systems like Redis, Elastic Search or time series databases to boost performance and scale up to Big Data scenarios.

JSON-API is the primary exchange data format.

GrapQL initial support available via dedicated plugin.

The easiest and quickest way to try out BEdita4 is via Docker, read instructions below.

Prerequisites

  • PHP 7.4, 8.0, 8.1, 8.2 or 8.3 with extensions: json, mbstring, fileinfo, intl, pdo, simplexml
  • MySQL 8.0 (recommended) or MySQL 5.7, Postgres 11/12/13/14, MariaDB 10.2/10.3/10.4 or SQLite 3
  • Composer

Install

For a detailed setup overview see Setup Documentation

Quick setup in three steps.

  1. Create project via composer
 composer create-project bedita/bedita

If you are using a .zip or .tar.gz release file you just need to unpack it and then run composer install.

  1. Create an empty database either MySQL or PostgresSQL. Do nothing for SQLite.

  2. Change to the newly created folder and run this script to initialize the database and create first admin user:

 bin/cake bedita setup

See Web Server setup to configure a virtualhost in your webserver. To see first /home endpoint response you may point to http://your-vhost/home

Curl example:

 curl -H Accept:application/json http://your-vhost/home

Otherwise, only for development or test setups, you can take advantage of PHP builtin server with this simple command:

 bin/cake server

and see /home endpoint response pointing to http://localhost:8765/home like this:

 curl -H Accept:application/json http://localhost:8765/home

For an explanation on Accept headers usage read here.

Docker

See Docker setup documentation for a more detailed overview.

Pull official image

Get latest offical image build from Docker Hub

 docker pull bedita/bedita:latest

You may also use :5-salix tag instead of :latest, they are currently synonyms.

Build image

If you want to build an image from local sources you can do it like this from BEdita root folder:

 docker build -t bedita5-local .

You may of course choose whatever name you like for the generated image instead of bedita5-local.

Run

Run a Docker image setting an initial API KEY and admin username and password, like this:

 docker run -p 8090:80 --env BEDITA_API_KEY=1029384756 \
    --env BEDITA_ADMIN_USR=admin --env BEDITA_ADMIN_PWD=admin \
    bedita/bedita:latest

This will launch a BEdita4 instance using SQLite as its storage backend. It should become available at http://localhost:8090/home almost instantly.

Replace bedita/bedita:latest with bedita5-local (or other chosen name) to lanch a local built image.

Documentation

Developer documentation can be found here

Licensing

BEdita is released under LGPL, Lesser General Public License v3.

bedita/bedita 适用场景与选型建议

bedita/bedita 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 289 次下载、GitHub Stars 达 68, 最近一次更新时间为 2017 年 04 月 18 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 bedita/bedita 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

  • 总下载量: 289
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 69
  • 点击次数: 16
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 68
  • Watchers: 11
  • Forks: 22
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2017-04-18