yeesoft/yii2-yee-cms
最新稳定版本:0.1.0
Composer 安装命令:
composer create-project yeesoft/yii2-yee-cms
包简介
Yee CMS Based on Yii 2 Advanced Project Template
README 文档
README
YeeCMS - Control Panel Based On Yii2 PHP Framework
Installation
Installing Yee CMS application.
- Installing (using Composer)
If you do not have [Composer](http://getcomposer.org/), follow the instructions in the
[Installing Yii](https://github.com/yiisoft/yii2/blob/master/docs/guide/start-installation.md#installing-via-composer) section of the definitive guide to install it.
With Composer installed, you can then install the application using the following commands:
```bash
cd /var/www/
composer global require "fxp/composer-asset-plugin:^1.2.0"
composer create-project --prefer-dist --stability=dev yeesoft/yii2-yee-cms mysite.com
```
-
Initialize the installed application
Execute the
initcommand and selectdevorprodas environment.cd /var/www/mysite.com/ php init -
Configurate your web server:
For Apache config file could be the following:
<VirtualHost *:80> ServerName mysite.com ServerAlias www.mysite.com DocumentRoot "/var/www/mysite.com/" <Directory "/var/www/mysite.com/"> AllowOverride All </Directory> </VirtualHost>
For Nginx config file could be the following:
server { charset utf-8; client_max_body_size 200M; listen 80; server_name mysite.com; root /var/www/mysite.com; location / { root /var/www/mysite.com/frontend/web; try_files $uri /frontend/web/index.php?$args; # avoiding processing of calls to non-existing static files by Yii location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ { access_log off; expires 360d; try_files $uri =404; } } location /admin { alias /var/www/mysite.com/backend/web; rewrite ^(/admin)/$ $1 permanent; try_files $uri /backend/web/index.php?$args; } # avoiding processing of calls to non-existing static files by Yii location ~ ^/admin/(.+\.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar))$ { access_log off; expires 360d; rewrite ^/admin/(.+)$ /backend/web/$1 break; rewrite ^/admin/(.+)/(.+)$ /backend/web/$1/$2 break; try_files $uri =404; } location ~ \.php$ { include fastcgi_params; # check your /etc/php5/fpm/pool.d/www.conf to see if PHP-FPM is listening on a socket or port fastcgi_pass unix:/var/run/php5-fpm.sock; ## listen for socket #fastcgi_pass 127.0.0.1:9000; ## listen for port fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; try_files $uri =404; } #error_page 404 /404.html; location = /requirements.php { deny all; } location ~ \.(ht|svn|git) { deny all; } }
-
Create a new database and adjust the
components['db']configuration incommon/config/main-local.phpaccordingly. -
Apply all migrations with console command
php yii migrate --migrationLookup=@yeesoft/yii2-yee-core/migrations/,@yeesoft/yii2-yee-auth/migrations/,@yeesoft/yii2-yee-settings/migrations/,@yeesoft/yii2-yee-menu/migrations/,@yeesoft/yii2-yee-user/migrations/,@yeesoft/yii2-yee-translation/migrations/,@yeesoft/yii2-yee-media/migrations/,@yeesoft/yii2-yee-post/migrations/,@yeesoft/yii2-yee-page/migrations/,@yeesoft/yii2-comments/migrations/,@yeesoft/yii2-yee-comment/migrations/,@yeesoft/yii2-yee-seo/migrations/. -
Init root user with console command
php yii init-admin. -
Configurate your mailer
['components']['mailer']incommon/config/main-local.php.
#####Your Yee CMS application is installed. Visit your site mysite.com or admin panel mysite.com/admin, the site should work and message Congratulations! You have successfully created your Yii-powered application should be displayed.
yeesoft/yii2-yee-cms 适用场景与选型建议
yeesoft/yii2-yee-cms 是一款 基于 CSS 开发的 Composer 扩展包,目前已累计 4k 次下载、GitHub Stars 达 145, 最近一次更新时间为 2015 年 08 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cms」 「yii2」 「yee」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 yeesoft/yii2-yee-cms 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 yeesoft/yii2-yee-cms 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 yeesoft/yii2-yee-cms 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A custom URL rule class for Yii 2 which allows to create translated URL rules
GraphQL authentication for your headless Craft CMS applications.
Set Links with a specific language parameter
Supercharged text field validation.
Integrate with Snipcart.
SCEditor, a lightweight WYSIWYG BBCode & HTML editor extension for Yii 2.0 Framework
统计信息
- 总下载量: 4k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 146
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2015-08-27