Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
Q

quickconcat

> 编程语言
Open source

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

178 stars0 likes1 views
WebsiteGitHub

About

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

: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 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHP

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

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