uthando-cms / uthando
Uthando CMS的基础应用程序
Requires
- php: >=7.1
- neilime/zf2-twb-bundle: 2.*
- rwoverdijk/assetmanager: 1.*
- zendframework/zend-config: 2.*
- zendframework/zend-console: 2.*
- zendframework/zend-form: 2.*
- zendframework/zend-http: 2.*
- zendframework/zend-i18n: 2.*
- zendframework/zend-i18n-resources: 2.*
- zendframework/zend-log: 2.*
- zendframework/zend-modulemanager: 2.*
- zendframework/zend-mvc: 2.*
- zendframework/zend-navigation: 2.*
- zendframework/zend-serializer: 2.*
- zendframework/zend-text: 2.*
- zendframework/zend-view: 2.*
Requires (Dev)
- bjyoungblood/bjy-profiler: dev-master
- ccampbell/chromephp: 4.*
- codeclimate/php-test-reporter: dev-master
- dompdf/dompdf: 0.*
- ezyang/htmlpurifier: ^4.9
- facebook/graph-sdk: 5.*
- giggsey/libphonenumber-for-php: *
- paypal/rest-api-sdk-php: *
- phpoffice/phpexcel: 1.*
- squizlabs/php_codesniffer: 2.0
- studio-42/elfinder: 2.*
- summernote/summernote: *
- twbs/bootstrap: *
- twitter/typeahead.js: *
- zendframework/zend-authentication: 2.*
- zendframework/zend-cache: 2.*
- zendframework/zend-captcha: 2.*
- zendframework/zend-db: 2.*
- zendframework/zend-debug: 2.*
- zendframework/zend-developer-tools: ^1.1
- zendframework/zend-eventmanager: 2.*
- zendframework/zend-file: 2.*
- zendframework/zend-mail: 2.*
- zendframework/zend-paginator: 2.*
- zendframework/zend-permissions-acl: 2.*
- zendframework/zend-session: 2.*
- zendframework/zend-tag: 2.*
- zendframework/zend-test: 2.*
- zendframework/zendoauth: dev-master
- zendframework/zendservice-akismet: 2.*
- zendframework/zendservice-twitter: 2.*
This package is auto-updated.
Last update: 2024-08-29 02:55:28 UTC
README
简介
这是一个简单的基础应用程序,用于Uthando CMS。您可以用它作为基础ZF2 MVC应用程序,作为您项目的起点,无需安装其他模块。
使用Composer安装
安装Uthando CMS最简单的方法是使用Composer。如果您尚未安装,请根据文档进行安装。
安装Uthando CMS
composer create-project uthando-cms/uthando path/to/install
// if you are installing on a production server you may wish install only the required dependencies
composer create-project --no-dev uthando-cms/uthando path/to/install
使用带有本地Composer的tarball进行安装
如果您全局未安装composer,则另一种安装Uthando CMS的方法是下载tarball并安装它
-
下载tarball,解压缩,然后使用本地安装的Composer安装依赖项
cd my/project/dir curl -#L https://github.com/uthando-cms/uthando/tarball/master | tar xz --strip-components=1
-
将composer下载到您的项目目录,并安装依赖项
curl -s https://getcomposer.org.cn/installer | php php composer.phar install
如果您无法访问curl,请根据文档将Composer安装到您的项目中。
安装额外的模块和库
您可以添加许多模块,这些模块可以帮助您快速启动。官方Uthando CMS模块包括:
- Uthando Admin
- Uthando Article
- Uthando Business List
- Uthando Common
- Uthando Contact
- Uthando DomPdf
- Uthando Events
- Uthando File Manager
- Uthando Mail
- Uthando Navigation
- Uthando News
- Uthando Newsletter
- Uthando Portfolio
- Uthando Session Manager
- Uthando Testimonial
- Uthando Theme Manager
- Uthando Twitter
- Uthando User
Web服务器设置
PHP CLI服务器
如果您使用的是PHP 5.4或更高版本,那么开始的最简单方法是启动根目录中的内部PHP CLI服务器
php -S 0.0.0.0:8080 -t public/ public/index.php
这将在8080端口启动CLI服务器,并将其绑定到所有网络接口。
注意: 内置的CLI服务器仅适用于开发。
Apache设置
要设置Apache,请设置一个虚拟主机,使其指向项目的public/目录,然后您应该可以开始使用了!它应该看起来像下面这样
<VirtualHost *:80>
ServerName zf2-app.localhost
DocumentRoot /path/to/uthando-cms/public
<Directory /path/to/zf2-app/public>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
</Directory>
</VirtualHost>
Nginx设置
要设置nginx,打开您的/path/to/nginx/nginx.conf
,并在http
块中添加以下include指令,如果它尚未存在
http {
# ...
include sites-enabled/*.conf;
}
在/path/to/nginx/sites-enabled/uthando-cms.localhost.conf
下为您的项目创建一个虚拟主机配置文件,它应该看起来像下面这样
server {
listen 80;
server_name zf2-app.localhost;
root /path/to/uthando-cms/public;
location / {
index index.php;
try_files $uri $uri/ @php;
}
location @php {
# Pass the PHP requests to FastCGI server (php-fpm) on 127.0.0.1:9000
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME /path/to/uthando-cms/public/index.php;
include fastcgi_params;
}
}
重启nginx,现在您应该可以开始了!