plinct/cms
Composer 安装命令:
composer require plinct/cms
包简介
Cms for Plinct app
README 文档
README
CMS for Plinct application
Admin panel to manage API Plinct
According to Schema.org standards
Enabled types:
- User;
- Person;
- PostalAddress;
- ContactPoint;
- Place;
- Organization;
- LocalBusiness;
- ImageObject;
- WebPage (with WebPageElement);
- Product;
- Taxon;
- Event;
- Order;
- Invoice
###Installation
composer install plinct/cms
###Dependencies
- php: >=7.2
- Slim/slim: 4.*
- plinct/api
- plinct/web
- plinct/middleware
- plinct/tool
###Get starting On index.php
<?php declare(strict_types=1); use \Slim\Factory\AppFactory; use Plinct\Middleware\RemoveEndBar; use Plinct\Middleware\RedirectHttps; use Plinct\Api\PlinctApiFactory; use Plinct\Cms\CmsFactory; // autoload include '../vendor/autoload.php'; // error error_reporting(E_ALL); /******* SLIM ********/ $slimApp = AppFactory::create(); // for enable routes PUT and DELETE $slimApp->addBodyParsingMiddleware(); //******* PLINCT *********/ // middlewares $slimApp->add(new RedirectHttps()); $slimApp->add(new RemoveEndBar()); // api $api = PlinctApiFactory::create($slimApp); $api->setAdminData("dbAdminUser", "dbEmailUser", "dbAdminPassword"); // optional $api->connect("dbDriver", "dbHost", "dbDatabase", "dbUser", "dbPassword"); $api->run(); // cms on https://domain/admin $cms = CmsFactory::create($slimApp); $cms->setLanguage("pt_BR"); $cms->setTitle("Pirenópolis Hospedagem"); $cms->setTypesEnabled([ "webPage", "product" ]); $cms->run(); //******* END PLINCT ***********/ // public routes for website on https://domain $publicRoutes = include './App/routes.php'; $publicRoutes($slimApp); // run $slimApp->run(); ``
统计信息
- 总下载量: 630
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2020-07-22