定制 quidphp/react 二次开发

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

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

quidphp/react

Composer 安装命令:

composer create-project quidphp/react

包简介

Create a new project using QuidPHP, LemurCMS and React

README 文档

README

Release License PHP Version Style CI Code Size

About

QuidPHP/React repository contains the necessary structure to create a new project using QuidPHP, LemurCMS and React.

License

QuidPHP/React is available as an open-source software under the MIT license.

Documentation

QuidPHP/React documentation is available at QuidPHP/Docs.

Installation

QuidPHP/React can be easily installed with Composer. It is available on Packagist.

$ composer create-project quidphp/react --prefer-dist

Requirement

QuidPHP/React requires the following:

  • Apache or Nginx server (running on MacOs or Linux environment).
    • Works in Windows environment but there are known issues.
  • PHP 8.1
    • with these extensions:
      • ctype
      • curl
      • date
      • fileinfo
      • gd
      • iconv
      • json
      • mbstring
      • pcre
      • openssl
      • session
      • SimpleXML
      • zip
      • PDO
      • pdo_mysql
    • and these PHP INI directives
      • post_max_size must be at least 1MB
      • post_max_size must be larger than upload_max_filesize
      • memory_limit must be at least 128MB
  • Mysql (>= 8.0) or MariaDB (>= 10.4) database
  • NodeJs LTS version (>= 16)
  • Any modern browser (not Internet Explorer)

Dependency

QuidPHP/Assert has the following dependencies:

All dependencies will be resolved by using the Composer installation process.

Setup

Once the installation is complete, simply follow these steps:

  1. Make sure the storage and public folders are writable by your web server. For storage also make sure all subdirectories are writable.
  2. Configure an Apache Virtual Host or Nginx Server Block in order to have a domain pointing to the public folder document root.
  3. Import db.sql within a new Mysql/MariaDB database.
  4. Duplicate the env-default.php file and rename it to env.php.
  5. Update the scheme hosts within the env.php file. You will need to set a different host (domain or subdomain) for the application and the CMS.
  6. Update the database parameters within the env.php file.
  7. Not required, but you are encouraged to change the namespace of all PHP classes within the src folder. The default namespace is Project.

Booting via Webpack/HTTP

Open the project folder in the Command Line. To start the development server with hot module reload (HMR) write:

npm run hot

Your application will be reachable at the defined host within your env.php file. A second Node server is also started to serve the HMR requests (defaults to localhost on port 8079). You may need to accept the self-signed certificate for that localhost.

Webpack production build

To generate the production build for the React application, open the project folder in the Command Line and write:

npm run prod

QuidPHP CLI routes

Open the project folder in the Command Line. You may now submit a command in the following format:

php quid [path][:envType]
exemple:
php quid /en/my-url
php quid /en/my-url:dev/cms
php quid /:prod/app

LemurCMS credentials

Once you open the CMS within your browser, you will need to login. The default user is:

  • Username: admin
  • Password: changeme123

Once you are logged in, you will be able to change the password for the user and create new users.

Overview

QuidPHP/Project contains 31 files. Here is an overview:

Known issues

  • On Windows, there are some problems related to creating symlinks.
  • On Windows, you will need to add lower_case_table_names = 2 in your database configuration file (my.cnf). The table and column names need to be stored in their natural case.

Testing

QuidPHP testsuite can be run by creating a new QuidPHP/Assert project.

quidphp/react 适用场景与选型建议

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

它主要适用于以下技术方向: 「framework」 「cms」 「react」 「quid」 「quidphp」 「lemur」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

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

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

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-05-22