webrium/core
Composer 安装命令:
composer require webrium/core
包简介
A lightweight set of PHP utility classes for common web tasks: routing, HTTP requests and headers, sessions, validation, file uploads, JWT, and hashing.
README 文档
README
Webrium Core
The Lightweight Engine for Modern PHP Applications
Fast. Modular. Elegant.
🌟 Overview
Webrium Core is a high-performance PHP component library designed to simplify web development. While it serves as the backbone of the Webrium Framework, it is built to be completely standalone. Whether you're building a microservice or a full-scale web app, Webrium Core provides the essential tools without the bloat.
🚀 Quick Start
1. Installation
Get started via Composer:
composer require webrium/core
2. Basic Setup (index.php)
<?php require_once __DIR__ . '/vendor/autoload.php'; use Webrium\App; use Webrium\Route; App::initialize(__DIR__); Route::get('/', fn()=> "Welcome to Webrium Core! 🚀" ); App::run();
📚 Comprehensive Documentation (Wiki)
Explore the full power of Webrium Core through our detailed guides:
🚀 Core Essentials
- App Initialization: Learn about the application structure and boot process.
- Routing System: Define and manage clean, RESTful routes easily.
- Helper Functions: Global shortcuts for URLs, redirects, input, paths, and more.
- Flash: Manage one-time session flash data, old input, and message display.
🌐 Request & Response
- URL Helpers: Manage and generate dynamic URLs effortlessly.
- Header Management: Control HTTP headers and responses.
- HTTP Client: Perform outgoing requests with a simple, fluent interface.
🛡️ Security & Validation
- Data Validator: Robust tools for validating user input and forms.
- JWT Integration: Secure your APIs with JSON Web Tokens.
- Hash Utilities: Secure password hashing, HMAC, tokens, and more.
🛠️ Files, Storage & Utilities
- File Manager: Read, write, stream, download, and manage files and directories.
- Session Manager: Store and retrieve session data, flash messages, and counters.
- File Upload: A streamlined way to handle file uploads safely.
- Vite: Seamlessly include development and production frontend assets.
统计信息
- 总下载量: 1.33k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 2
- 依赖项目数: 5
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-05-28