yiier / forum
Yii 2 forum
Installs: 129
Dependents: 0
Suggesters: 0
Security: 0
Stars: 41
Watchers: 21
Forks: 20
Open Issues: 7
Type:project
Requires
- php: >=5.4.0
- creocoder/yii2-nested-set-behavior: *
- kartik-v/yii2-markdown: dev-master
- robregonm/yii2-auth: dev-master
- yiisoft/yii2: *
- yiisoft/yii2-authclient: *
- yiisoft/yii2-bootstrap: *
- yiisoft/yii2-elasticsearch: *
- yiisoft/yii2-swiftmailer: *
Requires (Dev)
Suggests
- codeception/codeception: Codeception, 1.8.*@dev is currently works well with Yii.
- codeception/specify: BDD style code blocks for PHPUnit and Codeception
- codeception/verify: BDD Assertions for PHPUnit and Codeception
This package is not auto-updated.
Last update: 2024-11-09 15:50:09 UTC
README
forum based on yii2,this is an experimental product, not use for production, unless you know what you are doing
forum feature.
community, wiki, edit Used markdown, tags, rbac, third-party login (weibo, qq), announcements
DIRECTORY STRUCTURE
assets/ contains assets definition
commands/ contains console commands (controllers)
config/ contains application configurations
controllers/ contains Web controller classes
mail/ contains view files for e-mails
models/ contains model classes
runtime/ contains files generated during runtime
tests/ contains various tests for the basic application
vendor/ contains dependent 3rd-party packages
views/ contains view files for the Web application
web/ contains the entry script and Web resources
REQUIREMENTS
The minimum requirement by this application template that your Web server supports PHP 5.4.0.
The Memory limit must not lower than 6MB, recommended 128MB. You can open up requirements.php
file from root folder in browser to
explore more requirements details.
INSTALLATION
Install via github
clone https://github.com/yiier/forum.git
Then download Composer take the composer.phar in the web root directory,using the following command:
php composer.phar update --prefer-dist
You can then access the application through the following URL:
http://localhost/forum/web/
Install via Composer
If you do not have Composer, you may install it by following the instructions at getcomposer.org.
You can then install this application template using the following command:
php composer.phar create-project --prefer-dist --stability=dev yiier/forum forum
Now you should be able to access the application through the following URL, assuming forum
is the directory
directly under the Web root.
http://localhost/forum/web/
SETUP
Database
Create the file config/db-local.php
with the connection infomation for your local environment, for example:
return [ 'class' => 'yii\db\Connection', 'dsn' => 'mysql:host=127.0.0.1;dbname=forum', // Don't use localhost, Because IPv4/IPv6 recognition very slow to connect to mysql 'username' => 'root', 'password' => '1234', 'charset' => 'utf8', ];
NOTE: forum.sql
in the root folder, import it into the database, this has to be done manually before you can access it.
Also check and edit the other files in the config/
directory to customize your application.