mrcore/wiki
Composer 安装命令:
composer require mrcore/wiki
包简介
Mrcore Wiki Module
关键字:
README 文档
README
mrcore/wiki is a module for the mRcore Framework
This module provides wiki and CMS dynamic app loading functionality.
Installation
Assuming you already have Laravel and mRcore Framework installed along with mRcore Auth Module
composer require mrcore/wiki:5.8.* composer require mrcore/bootswatch-theme:5.8.*
Edit your config/modules.php file and ensure 'Mrcore\Wiki' => [], is set in your modules array
'modules' => [ #... 'Mrcore\Wiki' => [] #... ]
And ensure Mrcore\Wiki is set in all 3 assets, views and routes arrays under the "Loading Order / Override Management" section.
Notice Mrcore\Wiki is defined first in the routes array. Follow the order of each array listed
#... 'assets' => [ '%app%', 'Mrcore\BootswatchTheme', 'Mrcore\Auth', 'Mrcore\Wiki', ], 'views' => [ '%app%', 'Mrcore\Auth', 'Mrcore\Wiki', 'Mrcore\BootswatchTheme', ], 'routes' => [ 'Mrcore\Wiki', '%app%', 'Mrcore\Auth', 'Mrcore\Foundation', ], #...
Edit your config/auth.php file and set guards web driver to mrcore
'guards' => [ 'web' => [ 'driver' => 'mrcore', 'provider' => 'users', ], 'api' => [ 'driver' => 'token', 'provider' => 'users', ], ],
And set profiders users model to Mrcore\Auth\Models\User::class
'providers' => [ 'users' => [ 'driver' => 'eloquent', 'model' => Mrcore\Auth\Models\User::class, ], ],
Run auth and wiki migrations and seeders
./artisan mrcore:auth:app db:migrate ./artisan mrcore:wiki:app db:migrate ./artisan mrcore:auth:app db:seed ./artisan mrcore:wiki:app db:seed
Visit your laravel install (if php artisan server at http://localhost:8000) to see the new wiki
Default user/pass is admin / password
What Is mRcore
mRcore is a module/package system for Laravel allowing you to build all your applications as reusable modules. Modules resemble the Laravel folder structure and can be plugged into a single Laravel instance. mRcore solves module loading dependency order and in-place live asset handling. Modules can be full web UIs, REST APIs and/or full Console command line apps. A well built module is not only your UI and API, but a shared PHP library, a native API or repository which can be reused as dependencies in other modules.
We firmly believe that all code should be built as modules and not in Laravel's directory structure itself. Laravel simply becomes the "package server". A single Laravel instance can host any number of modules.
See https://github.com/mrcore5/framework for details and installation instructions.
Versions
- 1.0 is for Laravel 5.1 and below
- 2.0 is for Laravel 5.3, 5.4, 5.5
- 5.6 is for Laravel 5.6
- 5.7 is for Laravel 5.7
- ... Following Laravel versions from here on
Contributing
Thank you for considering contributing to the mRcore framework! Fork and pull!
License
mRcore is open source software licensed under the MIT license
Enhancement Ideas
- NO-Foundation installer should prompt and notify about to delete laravel models, migrations...
- Build
mrcore5-installersymfony console command to install fresh laravel + foundation. Options for --wiki install or --blog or whatever. - Perfect entities with
mreschke/repositoryfor auth, foundation and wiki. Split tables between them - DONE-Change namespace of bootswatch theme, maybe just Mrcore/BootswatchTheme ?
Wiki Tables
-
badges
-
comments
-
formats (wiki, php, phpw, html, text, markdown, htmlw)
-
frameworks (custom, workbench)
-
hashtags
-
modes (default, simple, raw, source)
-
post_badges
-
post_indexes
-
post_locks
-
post_permissions
-
post_reads
-
post_tags
-
posts
-
revisions
-
router
-
tags
-
types (doc, page, app)
$wiki = App::make('Mrcore\Wiki');
Auth Tables
-
permissions (update with per type, like wiki, or user, or blog...)
-
roles
-
user_permissions
-
user_roles
-
users
$auth = App::make('Mrcore\Auth'); $user = $auth->user->find(3); $user->roles; $user->permissions;
mrcore/wiki 适用场景与选型建议
mrcore/wiki 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.13k 次下载、GitHub Stars 达 4, 最近一次更新时间为 2015 年 02 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「wiki」 「laravel」 「mrcore」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 mrcore/wiki 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mrcore/wiki 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 mrcore/wiki 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
Texy converts plain text in easy to read Texy syntax into structurally valid (X)HTML. It supports adding of images, links, nested lists, tables and has full support for CSS. Texy supports hyphenation of long words (which reflects language rules), clickable emails and URL (emails are obfuscated again
Automatically logs-in users if they are already authenticated by a remote source. (e.g. environment variable REMOTE_USER)
An extension to Semantic MediaWiki allowing to build breadcrumb links from an attributive property filter
Adds the EDTF data type to Wikibase
Wikipedia/MediaWiki Grabber for Laravel.
统计信息
- 总下载量: 2.13k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-16