定制 simp/content-manager 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

simp/content-manager

最新稳定版本:v1.2.2

Composer 安装命令:

composer create-project simp/content-manager

包简介

This is quick kit for creating and managing contents

README 文档

README

A simple, modular content management system designed for creating and managing digital content with ease.

License

Overview

Content Manager is a PHP-based content management system that provides a comprehensive framework for building content-driven websites and applications. It features a modular architecture with clear separation of concerns, making it highly extensible and customizable to meet specific project requirements.

Features

  • Modular Architecture: Easily extend or replace components as needed
  • Authentication & Authorization: Comprehensive user management with multiple authentication methods
  • Theming System: Flexible theming capabilities using Twig templates
  • File Management: Robust file handling with upload capabilities
  • Database Abstraction: Simple yet powerful database operations through Medoo
  • Form Handling: Streamlined form generation, validation, and processing
  • Internationalization: Translation and localization support
  • Event-Driven Architecture: Event subscribers for extensible, decoupled code
  • RESTful Data Sources: Integration with external data sources
  • CLI Tools: Command-line interface for administrative tasks

System Requirements

  • PHP 8.0 or higher
  • PDO PHP Extension
  • Fileinfo PHP Extension
  • Readline PHP Extension
  • Composer

Installation

Using Composer

composer create-project simp/content-manager your-project-name
cd your-project-name

Manual Installation

git clone https://github.com/CHANCENY/content-manager.git
cd content-manager
composer install

Development Environment

The project includes Lando configuration for local development:

lando start

Project Structure

content-manager/
├── core/               # Core system components
│   ├── components/     # Specialized components
│   ├── lib/            # Core libraries
│   └── modules/        # Functional modules
├── public/             # Publicly accessible files
│   ├── module/         # Public modules
│   └── theme/          # Theme files
└── schema/             # Database schema definitions

Core System Components

The core system serves as a linker for various essential functionalities:

  • Session Management: Default and file-based session handling
  • Database Connectivity: Database abstraction and operations
  • Filesystem Operations: File handling and management
  • Authentication & Authorization: User authentication and access control
  • Request & Response Handling: HTTP request/response processing
  • Theming: Theme rendering and management
  • Services: Service container and dependency injection

Configuration

Basic configuration can be adjusted through the core modules:

// Example configuration
$config = \Simp\Core\modules\config\Config::getInstance();
$config->set('site_name', 'My Content Site');

Usage Examples

Creating a Basic Page

// Example page creation
use Simp\Core\modules\structures\ContentType;

$page = new ContentType('page');
$page->setTitle('Welcome to Content Manager');
$page->setContent('This is my first page created with Content Manager.');
$page->save();

User Authentication

// Example authentication
use Simp\Core\modules\auth\Authentication;

$auth = Authentication::getInstance();
if ($auth->login($username, $password)) {
    echo "User authenticated successfully!";
}

Extending the System

The modular architecture allows for easy extension:

// Example custom module
namespace MyProject\CustomModule;

class MyModule {
    // Implementation
}

Register your custom module in the appropriate configuration file.

API Documentation

Comprehensive API documentation is available in the code comments. You can generate documentation using tools like phpDocumentor.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

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

Author

Acknowledgments

  • Symfony Components
  • Twig Template Engine
  • Medoo Database Framework
  • All other open-source libraries used in this project

统计信息

  • 总下载量: 26
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-04-18