百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
Q

quickconcat

> 编程语言
开源

一个用 PHP 编写的简单动态连接器,用于处理 HTML、CSS 和 JS 文件

178 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

一个用 PHP 编写的简单动态连接器,用于处理 HTML、CSS 和 JS 文件

:warning: This project is archived and the repository is no longer maintained.

quickconcat

a simple dynamic concatenator for html, css, and js files, written in PHP

  • Copyright 2012, Scott Jehl, Filament Group, Inc.
  • Dual licensed under MIT and GPLv3

concat.php accepts 2 query strings:

	* files (required): a comma-separated list of root-relative file paths
	* wrap (optional): Enclose each result in an element node with url attribute? False by default.

Example CSS url:

quickconcat.php?files=css/a.css,css/b.css,css/c.css

Example JS url:

quickconcat.php?files=js/a.js,js/b.js,js/c.js

Example HTML url:

quickconcat.php?files=a.html,b.html,c.html

Example HTML url with wrapped entries:

quickconcat.php?files=a.html,b.html,c.html&wrap

Note that when wrap is passed, like above, each file will be wrapped in a entry element with a url attribute corresponding to the URL from which the content was included. For example:

...content from file a here......content from file b here......content from file c here...

optional .htaccess ideas

To clean up your file paths, gzip output, and more, you might consider incorporating some server rewrites via Apache .htaccess or otherwise. Here's an example that allows for cleaner urls and zipped output:

# Cleaner URLs for quickconcat.php
# this allows for urls like this: "/path/to/file.html,path/to/fileb.html=concat"
# or wrapped, "/path/to/file.html,path/to/fileb.html=concat&wrap"
RewriteEngine On
RewriteRule ^([^\?]+)=concat(&wrap)?$ quickconcat.php?files=$1$2

# compress transfer

AddOutputFilterByType DEFLATE text/html text/css text/javascript

With the above dropped into your .htaccess file, you can concatenate files like this: /path/to/file.html,path/to/fileb.html=concat or like this (if you want to add wrappers) /path/to/file.html,path/to/fileb.html=concat&wrap

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHP

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言