# libra-cms **Repository Path**: mirrors/libra-cms ## Basic Information - **Project Name**: libra-cms - **Description**: Libra CMS 是基于 ZF2 的 CMS,能非常容易的创建你自己的网站,只需要使用简单的工具,比如文章管理。 Libra CMS 能非常容易的添加文章,编辑使用 WYSIWYG 编辑器,在文章中上传图片,可以伸缩图片。Libra 提供管理应用,使用: 路由:在管理路由中创建子路由,可以通过 /admin/routeurl 来访问 布局:可以在 view/layout/admin-layout-name 文件夹的任意模块创建新布局,默认的布局名字是 default - **Primary Language**: Unknown - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2017-07-07 - **Last Updated**: 2026-02-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README *[CMS]: Content Management System *[DB]: DataBase Libra CMS ======================= ZF2 based CMS that allows easy creation of your own website with necessary tools like article menagment. It's easy to add articles, edit using a WYSIWYG editor, and upload images into articles with built-in zooming (For this just set image class="zoom" and specify different size from original). Libra provides an administration aware application. To utilize this functionality: - router: create children inside __admin__ route, and make application accessible by _/admin/route_ url. - layout: create your new layout in any module under folder _view/layout/admin-layout-name_, where default layout name is _default_. Concepts ------------ * It should be easy to use. * It should be easy to add new modules. Installation ------------ ###Using Composer (recommended, updated) 1. Download if necessary [composer.phar](http://getcomposer.org/download/) and run `php composer.phar create-project libra/libra-cms libra-cms dev-master` 2. Go to installed dir __libra-cms__. Copy __config/autoload/local.php.dist__ files to __local.php__ and update the parameters with your specific DB name and user name/password. Export SQL from __data/libra-cms.sql__ to DB. 3. Run `php -S localhost:8080 -t public` (assuming that you are inside installed folder). 4. Enjoy! Default administration user: __admin__, pass: __libra-cms__. Configuration: ----------------- 1. Add write permissions for running script user to: __public/images/stories__ to save images during article editing. 2. Change __pubic/robots.txt__ file to fit your needs. *Thanks for trying Libra CMS.*