No, you cannot easily do this, since minimization is highly dependent on file extensions (css, js ,?). For example, it is used to determine which HTTP headers are sent to the client (application / x-javascript, text / css ,?), Which minifier class to use, this file is safe for parsing, etc.
But I am pretty sure that this situation can be avoided. Could you explain why exactly you want to do this?
If you insist on doing it this way, I can offer some dirty hacks to make it work, but this requires changing the minimal source code, so I don't know if this is really a good idea.
Upd:
This source cannot be changed: it has a really bad structure. In minify v2.1.3, you can simply change the following:
Path: lib / Minify / Controller / Base.php ## Minify_Controller_Base :: _ fileIsSafe ()
return in_array(strrev($revExt), array('js', 'css', 'html', 'txt'));
->
return in_array(strrev($revExt), array('js', 'css', 'html', 'txt', 'php'));
Path: lib / Minify / Controller / MinApp.php ## Minify_Controller_MinApp :: setupSources ()
preg_match('/^[^,]+\\.(css|js)(?:,[^,]+\\.\\1)*$/', $_GET['f'])
->
preg_match('/^[^,]+\\.(css|js|php)(?:,[^,]+\\.\\1)*$/', $_GET['f'])
Path: lib / Minify / ## Minify_Source :: __ construct ()
case 'css' : $this->contentType = 'text/css';
->
case 'php': case 'css': $this->contentType = 'text/css';
and everything will work, but you must set $ min_serveOptions ['minApp'] ['allowDirs'] in the setting, since any user can view any php file from these directories.