melisplatform/melis-platform-skeleton
Composer 安装命令:
composer create-project melisplatform/melis-platform-skeleton
包简介
Melis Platform Skeleton
README 文档
README
The skeleton of Melis Platform.
This is the package you need to use to start a setup of Melis Platform.
Requirements
- PHP 7.0+
- PHP openssl extension
- PHP json extension
- PHP pdo_mysql extension
- PHP zip extension
Installation Options
Standard Installation with Composer
-
Download Composer
-
Install the skeleton with submodules using one of these methods:
# Method 1: Using create-project with --keep-vcs flag to preserve Git information composer create-project melisplatform/melis-platform-skeleton . # After create-project, initialize and update submodules git submodule init git submodule update
OR
# Method 2: Clone with submodules directly git clone --recursive https://github.com/melisplatform/melis-platform-skeleton composer install -
Setup your HTTP server (as described in HTTP server config section)
-
Add this entry to your hosts file if you're working locally:
127.0.0.1 www.mysite.local -
Create a database, using utf8_general_ci encoding
-
Go to the following URL: http://www.mysite.local/ and do the setup
-
You can now connect at http://www.mysite.local/melis
Docker Installation
To run Melis Platform using Docker:
- Clone the repository with submodules:
# Clone with submodules in one command git clone --recursive https://github.com/melisplatform/melis-platform-skeleton # Or, if already cloned, initialize and update submodules git submodule init git submodule update
- Follow the setup instructions in the melis-docker submodule documentation.
HTTP server & vhost configuration
Setup a virtual host that points to the public/ directory of the project.
Add the MELIS_PLATFORM (identifies your platform when having multiple environments like local/preprod/prod) and MELIS_MODULE (identifies which site will be loaded as the front office for this domain) variable.
Vhost should look like this:
<VirtualHost *:80> DocumentRoot "PATH_DOCROOT/public" <Directory "PATH_DOCROOT/public"> Options -Indexes +FollowSymLinks +ExecCGI DirectoryIndex index.php Order allow,deny Allow from all AllowOverride All Require all granted </Directory> ServerName www.mysite.local:80 SetEnv MELIS_PLATFORM "development" SetEnv MELIS_MODULE "MelisDemoCms" </VirtualHost>
If you are using Windows, you might want to add the following lines in your vhost to ensure that downloads of modules through composer can be managed by PHP.
Be aware that running composer through PHP (setup, marketplace, updates) requires memory and space.
<VirtualHost *:80> [...] <IfModule fcgid_module> FcgidIOTimeout 3600 FcgidBusyTimeout 1800 FcgidConnectTimeout 3600 FcgidOutputBufferSize 65536 FcgidMaxRequestsPerProcess 500 FcgidMinProcessesPerClass 0 FcgidProcessLifeTime 3600 </IfModule> [...] </VirtualHost>
Contributing
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Feel free to fork the project, create a feature branch, and send us a pull request!
Authors
- Melis Technology - www.melistechnology.com
See also the list of contributors who participated in this project.
License
This project is licensed under the OSL-3.0 License - see the LICENSE file for details
melisplatform/melis-platform-skeleton 适用场景与选型建议
melisplatform/melis-platform-skeleton 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.74k 次下载、GitHub Stars 达 4, 最近一次更新时间为 2019 年 12 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「zf2」 「mvc」 「platform」 「melis」 「laminas」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 melisplatform/melis-platform-skeleton 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 melisplatform/melis-platform-skeleton 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 melisplatform/melis-platform-skeleton 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
LosLog provides some log utility
Kinikit - PHP Application development framework MVC component
EdpModuleLayouts is very simple Laminas module for making module-specific layouts insanely easy.
Zend Framework module to leverage the symfony dependency injection container
RCM User HTML views/pages
统计信息
- 总下载量: 2.74k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2019-12-17