cmsgears/template-community
Composer 安装命令:
composer create-project cmsgears/template-community
包简介
The community template for community module having default theme set to community.
README 文档
README
Project - CMSGears (https://www.cmsgears.org)
Template - Community
License - GPLv3 (http://www.gnu.org/licenses/gpl-3.0.html)
Description - The community template requires below listed modules, plugins, themes and widgets freely provided by CMSGears.
Modules
- Core Module to manage site users, galleries, newsletters, roles and permissions.
- Forms Module to accept forms in both ajax and regular way.
- CMS Module to manage page, post, blocks, menus, sidebars and widgets.
- Community Module to manage groups, group members, group messages, friends.
Plugins
- File Manager Plugin provide default component to accept uploaded files and File Uploader Widget to uploads files.
- Social Meta Plugin provides options to customise pages and posts on facebook and twitter wall.
Widgets
- CLEditor Widget can be used to edit content using CLEditor WYSIWYG editor.
- Block Widget can be used to form pages using Blocks.
- Nav Widget can be used to form navigation menus.
- Login Widget can be used to login or register on site using Ajax.
- Gallery Widget can be used to show Image Galleries.
- Newsletter Widget can be used to allow site users to register for news and updates from site.
- Form Widget can be used to display forms stored in database using yii way.
- Ajax Form Widget can be used to display forms stored in database. These can be submitted using Ajax.
- Blog Widget can be used to show blog posts.
Themes
- Admin Theme provide layouts to manage Core, Forms and CMS modules. It also provide options to configure modules and plugins.
- Community Theme for frontend. It provide layouts and views for Core, Forms and CMS modules.
Template Details
The Community Template is a group of directories and configuration files used to manage the backend and frontend applications.
It also provide DB configuration having required test data. The uploads directory is uploaded by default files required for demonstration purpose.
Template Demo
- Frontend - https://demo.cmsgears.com/templates/community (demouser@cmsgears.com, test#123)
- Admin - https://demo.cmsgears.com/templates/community/admin (demomaster@cmsgears.com, test#123)
Template Installation
The Community Template can be installed via composer using the below mentioned command. To install composer, please refer to their official site https://getcomposer.org.
We can install release and pre-release i.e. alpha, beta versions using composer as mentioned below.
// Release Versions
php composer.phar create-project --prefer-dist --stability=stable cmsgears/template-community cmgdemocommunity
or
composer create-project --prefer-dist --stability=stable cmsgears/template-community cmgdemocommunity
We can also use below mentioned commands to access the pre release code
// Pre-release Versions
php composer.phar create-project --prefer-dist --stability=<alpha or beta or RC> cmsgears/template-community cmgdemocommunity
or
composer create-project --prefer-dist --stability=<alpha or beta or RC> cmsgears/template-community cmgdemocommunity
We can also install the template for latest code by cloning Community Template for the pre-release branch i.e. alpha, beta. In this case, we need to install composer.json file to initialise vendor directory.
Server Details
- Apache - If we are using Apache web server, we need to run either of the above mentioned command under Apache web root directory. More details can be found at http://www.cmsgears.org. The modules rewrite and headers must be enabled for apache.
Template Configuration - New
- Create the database, database user and update both the environments config - environments/dev/common/config/config-env.php, environments/prod/common/config/config-env.php. The default database and database user are cmgdemobasic.
- To trigger real-time mails in production environment, remove the config param 'useFileTransport' from the environments/prod/common/config/config-env.php.
- Install the DB using all-in-one-d.sql provided within the console/migrations directory. We might need to change database name if it's different than cmgdemobasic.
- Run the php script init.php to initialize the application for the predefined environments. The script will ask to choose environemnt among prod or dev.
- Update htaccess located under template root based on your web server needs. More details about live application settings can be found at http://www.cmsgears.org.
- Download the Admin, Mutisite and Blog Themes and place them under /themes/admin, /themes/community and /themes/blog directories respectively.
- Now we can run the template using our preferred browser. Example links are as mentioned below.
- Login to admin and update file upload url in case project name is different.
- By default all the files uploaded by users will be stored in uploads directory.
- Landing - Site index page.
- Login - Login page allows users to login.
- Register - Register page allows users to sign up.
- Confirm Account - Users can confirm account by following the link sent to their email while submitting Register form.
- Forgot Password - It can be used to generate password reset link.
- Reset Password - Users can reset password by following the link sent to their email while submitting Forgot Password form.
- Activate Account - User accounts added by site admin can be activated using this page.
- Blog - The blog page shows most recent posts published on site.
- User Home - Page displayed on login.
- User Profile - User profile page allows users to configure their profile details.
- User Settings - Settings page allows users to configure settings icluding account, notifications, reminders.
- CMS Page - The published pages can be accessed by site url followed by page slug.
- CMS Post - The published posts can be accessed by site url followed by post/(post slug).
Frontend - http://localhost/cmgdemocommunity/frontend/web
Admin - http://localhost/cmgdemocommunity/frontend/web
Template Configuration - Update
We can update the dependencies using composer.json file located at the root of template. Once done the standard composer command can be used to update dependencies.
Default Pages
The Blog Theme installed for Community Template provide views for default system pages as listed below.
Public Pages
Private Pages
CMS
cmsgears/template-community 适用场景与选型建议
cmsgears/template-community 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 1, 最近一次更新时间为 2018 年 01 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「template」 「community」 「yii2」 「cmsgears」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 cmsgears/template-community 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 cmsgears/template-community 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 cmsgears/template-community 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A custom URL rule class for Yii 2 which allows to create translated URL rules
Cross-platform general-purpose multiple content forms social network service software.
Simple ASCII output of array data
Sistema AMOS per le community
jawab community
E2E Studios PHP Framework adaptation of leafsphp/blade package
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2018-01-20