comphp/assets
Composer 安装命令:
composer require comphp/assets
包简介
Asset serving, resolution, and response helpers for PHP applications.
README 文档
README
CommonPHP Assets provides asset resolution and serving support for CommonPHP applications. It helps locate, identify, and return static application or package assets through the HTTP layer.
The package is intended to make assets available without requiring applications to expose their full source or package structure directly through the public web root.
Requirements
- PHP
^8.5 comphp/runtime:^0.3comphp/http:^0.3
Installation
Once this package is available through your Composer repositories, install it with:
composer require comphp/assets
Usage
<?php // TODO: Write usage
Package Notes
This package should handle asset paths, MIME types, cache headers, and asset responses. It should not become a full filesystem abstraction; virtual mounts and file operations belong in comphp/filesystem.
Error Handling
Missing assets, unreadable files, invalid paths, and response failures should throw package-specific exceptions or return appropriate HTTP responses through the asset surface.
Documentation
License
MIT. See LICENSE.md.
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-20