simp/pindrop
Composer 安装命令:
composer create-project simp/pindrop
包简介
Pindrop CMS project for building PHP websites
README 文档
README
Pindrop is a modern PHP web application framework designed for building modular, plugin-driven applications with ease and flexibility.
Overview
Pindrop provides a solid foundation for developing web applications that can grow with your needs. It features a powerful plugin system, dependency injection container, routing system, and modern PHP practices out of the box.
Key Features
Plugin System
- Modular Architecture: Build functionality as independent plugins
- Hot Loading: Automatically discover and load plugins from the modules directory
- Service Integration: Each plugin can register its own services
- Route Registration: Plugins define their own routes in simple YAML files
- State Management: Enable/disable plugins without code changes
Routing System
- Modern Router: Built on simp/router package for reliable request handling
- Plugin Integration: Automatically loads routes from all enabled plugins
- Flexible Configuration: Support for controllers, forms, and middleware
- URL Generation: Generate URLs from route names
- Statistics: Track route usage and performance
Dependency Injection
- PHP-DI Integration: Modern dependency injection container
- Service Providers: Organized service registration system
- Auto-wiring: Automatic dependency resolution
- Configuration Management: Environment-based configuration
Controller Base
- Standard Interface: Consistent controller method signatures
- Helper Methods: Common response generation (render, json, redirect)
- Request Handling: Built-in Symfony HttpFoundation support
- Extensible: Easy to extend with custom functionality
Quick Start
- Install Dependencies: Run
composer installto get all required packages - Configure Environment: Copy
.env.exampleto.envand update settings - Create Plugin: Add your functionality as a plugin in the
modules/directory - Define Routes: Add routes in your plugin's
routing.ymlfile - Build Controllers: Extend
ControllerBasefor your plugin logic
Plugin Structure
Each plugin follows a simple structure:
modules/
└── your-plugin/
├── info.yml # Plugin metadata
├── services.yml # Plugin services
├── routing.yml # Plugin routes
└── src/
├── Controller/
│ └── YourController.php
└── Form/
└── YourForm.php
Configuration
Pindrop uses environment variables for configuration:
- APP_ENV: Application environment (development/production)
- DEBUG: Enable debug mode
- TIMEZONE: Application timezone
- PLUGIN_ROOT: Path to plugins directory
- CONFIG_ROOT: Path to configuration files
Architecture
The framework is built around these core principles:
- Simplicity: Easy to understand and use
- Modularity: Everything is a plugin
- Flexibility: Adapt to different project needs
- Modern Standards: Follows PHP best practices
- Developer Experience: Focused on making development enjoyable
Getting Started
Pindrop is perfect for building:
- Content management systems
- API backends
- Admin dashboards
- E-commerce platforms
- Custom web applications
Start building your next project with Pindrop - where modularity meets simplicity.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-07-13