Download the PHP package webshr/core without Composer
On this page you can find all versions of the php package webshr/core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package core
Short Description Framework for WordPress projects.
License GPL-3.0-or-later
Homepage https://webshore.eu/
Informations about the package core
Webshr Core
A modern, modular framework for WordPress projects built with PHP 8.1+ and inspired by Laravel's architecture.
Overview
Webshr Core is a lightweight yet powerful framework designed specifically for WordPress development. It provides a clean, object-oriented approach to building WordPress themes and plugins with modern PHP features, dependency injection, and a modular architecture.
Features
- Modern PHP Architecture: Built with PHP 8.1+ using PSR-4 autoloading
- Modular System: Extensible module-based architecture for clean code organization
- Asset Management: Comprehensive asset handling with manifest support and bundling
- Dependency Injection: Service container for managing dependencies and bindings
- Encryption & Security: Built-in encryption utilities with multiple cipher support
- Configuration Management: Flexible configuration system with environment support
- Helper Functions: Rich set of utility functions for common WordPress tasks
- String Utilities: Comprehensive string manipulation helpers
- Filesystem Abstraction: Clean filesystem operations with proper error handling
Installation
Quick Start
Basic Setup
Using the Application Container
Core Components
Application Container
The Application class serves as the main service container and communication hub:
Module System
Create modular functionality using the module system:
Asset Management
Handle assets with manifest support and bundling:
Encryption Utilities
Secure data with built-in encryption:
String Utilities
Rich string manipulation helpers:
Configuration
Environment Configuration
The framework supports environment-based configuration:
Asset Configuration
Configure asset manifests and bundles:
Helper Functions
The framework provides numerous helper functions:
Architecture
Directory Structure
Key Design Patterns
- Service Container: Dependency injection and service resolution
- Module Pattern: Extensible, modular architecture
- Manager Pattern: Centralized management of resources
- Factory Pattern: Asset creation and instantiation
- Strategy Pattern: Pluggable encryption and hashing algorithms
Requirements
- PHP 8.1 or higher
- WordPress 5.0 or higher
- Composer for dependency management
Dependencies
psr/container: PSR-11 container interfacephpunit/phpunit: Testing framework (dev)squizlabs/php_codesniffer: Code quality (dev)wp-coding-standards/wpcs: WordPress coding standards (dev)
Development
Running Tests
Code Quality
Coverage
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Ensure all tests pass
- Submit a pull request
License
This project is licensed under the GPL-3.0-or-later License - see the LICENSE.md file for details.
Credits
- Author: Henrik Liebel (Webshore)
- Inspired by: Laravel Framework, Roots Acorn
- Website: webshore.eu
Support
For support and questions, please visit the project repository or contact [email protected].