Исходный код сообщества phpland.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
commands
components
config
controllers
helpers
mail
migrations
models
rbac
runtime
server/nginx/conf.d
views
web
widgets
.bowerrc
.gitignore
.htaccess
LICENSE.md
README.md
composer.json
yii

README.md

phpland

Source code of the phpland community.

Technology

  • Nginx or Apache
  • HTML5 + CSS3 (Bootstrap), Javascript (jQuery)
  • PHP 7.2+, MySQL, Yii Framework 2
  • Composer (PHP), Bower and NPM (CSS, JavaScript)
  • Markdown + CodeMirror Editor

Clone project via GIT

git clone https://github.com/dignityinside/phpland
cd phpland

Install all dependencies via Composer

composer install

Apply post create project script

composer run-script post-create-project-cmd

Apply migrations

Setup DB settings in "config/db.php" and run migrations.

php yii migrate

Apply RBAC

php yii rbac/init 

Register new user and assign the roles

Setup reCAPTCHA settings in config/params.php and register a new user.

php yii rbac/assign admin dignity
php yii rbac/assign moderator dignity

Generate sitemap.xml

php yii sitemap

Fetch planet

php yii planet

Fetch new videos

php yii video

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Make your changes
  4. Commit your changes (git commit -am 'Added some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create new Pull Request