├── vendor
├── meenie
│ └── javascript-packer
│ │ ├── .gitignore
│ │ ├── class.JavaScriptPacker.php4
│ │ ├── composer.json
│ │ ├── readme.txt
│ │ ├── example-file.php
│ │ ├── example-inline.php
│ │ └── class.JavaScriptPacker.php
├── wyrihaximus
│ └── html-compress
│ │ ├── .coveralls.yml
│ │ ├── phpcs.xml
│ │ ├── src
│ │ ├── Compressor
│ │ │ ├── CssMinifierCompressor.php
│ │ │ ├── ReturnCompressor.php
│ │ │ ├── Compressor.php
│ │ │ ├── CompressorInterface.php
│ │ │ ├── JavaScriptPackerCompressor.php
│ │ │ ├── JSMinCompressor.php
│ │ │ ├── JSqueezeCompressor.php
│ │ │ ├── BestResultCompressor.php
│ │ │ ├── CssMinCompressor.php
│ │ │ └── HtmlCompressor.php
│ │ ├── Patterns.php
│ │ ├── Tokens.php
│ │ ├── Token.php
│ │ ├── Frameworks
│ │ │ └── SculpinListener.php
│ │ ├── Parser.php
│ │ ├── Tokenizer.php
│ │ └── Factory.php
│ │ ├── .dunitconfig
│ │ ├── Makefile
│ │ ├── LICENSE
│ │ ├── composer.json
│ │ ├── CONTRIBUTING.md
│ │ └── README.md
├── websharks
│ └── css-minifier
│ │ ├── CHANGELOG.md
│ │ ├── src
│ │ ├── includes
│ │ │ ├── stub.php
│ │ │ ├── phar-stub.php
│ │ │ └── classes
│ │ │ │ └── Core.php
│ │ └── .htaccess
│ │ ├── composer.lock
│ │ ├── composer.json
│ │ ├── README.md
│ │ └── LICENSE.txt
├── linkorb
│ └── jsmin-php
│ │ ├── README.md
│ │ ├── composer.json
│ │ └── src
│ │ └── jsmin-1.1.1.php
├── natxet
│ └── CssMin
│ │ ├── README
│ │ └── composer.json
├── autoload.php
├── composer
│ ├── autoload_namespaces.php
│ ├── autoload_files.php
│ ├── autoload_psr4.php
│ ├── LICENSE
│ ├── autoload_real.php
│ ├── autoload_classmap.php
│ ├── autoload_static.php
│ ├── installed.json
│ └── ClassLoader.php
└── patchwork
│ └── jsqueeze
│ ├── composer.json
│ ├── README.md
│ ├── LICENSE.ASL20
│ └── LICENSE.GPLv2
├── composer.json
├── README.md
├── Plugin.php
└── composer.lock
/vendor/meenie/javascript-packer/.gitignore:
--------------------------------------------------------------------------------
1 | .idea
--------------------------------------------------------------------------------
/vendor/wyrihaximus/html-compress/.coveralls.yml:
--------------------------------------------------------------------------------
1 | src_dir: src/
2 |
--------------------------------------------------------------------------------
/vendor/websharks/css-minifier/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | ## v150510
2 |
3 | - Initial release.
4 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "require": {
3 | "wyrihaximus/html-compress": "^1.2"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/vendor/linkorb/jsmin-php/README.md:
--------------------------------------------------------------------------------
1 | # jsmin-php
2 |
3 | Unofficial repo containing a composer enabled jsmin-php
4 |
5 | Please check the composer.json for original authors and credits.
6 |
--------------------------------------------------------------------------------
/vendor/meenie/javascript-packer/class.JavaScriptPacker.php4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kokororin/typecho-plugin-HTMLCompress/HEAD/vendor/meenie/javascript-packer/class.JavaScriptPacker.php4
--------------------------------------------------------------------------------
/vendor/natxet/CssMin/README:
--------------------------------------------------------------------------------
1 | This is just a copy of the CssMin by Joe Scylla to format it for Composer.
2 | Composer: http://packagist.org/about-composer
3 | CssMin: http://code.google.com/p/cssmin/
4 |
--------------------------------------------------------------------------------
/vendor/autoload.php:
--------------------------------------------------------------------------------
1 |
2 |
3 | Object Calisthenics
4 |
5 |
6 |
--------------------------------------------------------------------------------
/vendor/composer/autoload_files.php:
--------------------------------------------------------------------------------
1 | $vendorDir . '/meenie/javascript-packer/class.JavaScriptPacker.php',
10 | );
11 |
--------------------------------------------------------------------------------
/vendor/websharks/css-minifier/src/includes/phar-stub.php:
--------------------------------------------------------------------------------
1 | =5.4,以下版本请用[1.2版](https://github.com/kokororin/typecho-plugin-HTMLCompress/tree/1.2)
--------------------------------------------------------------------------------
/vendor/websharks/css-minifier/src/.htaccess:
--------------------------------------------------------------------------------
1 |
2 | Require all denied
3 |
4 |
5 | deny from all
6 |
7 |
8 |
9 |
10 | Require all granted
11 |
12 |
13 | allow from all
14 |
15 |
16 |
--------------------------------------------------------------------------------
/vendor/wyrihaximus/html-compress/src/Compressor/CssMinifierCompressor.php:
--------------------------------------------------------------------------------
1 |
11 | */
12 | class CssMinifierCompressor extends Compressor
13 | {
14 | protected function execute($string)
15 | {
16 | return Core::compress($string);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/vendor/composer/autoload_psr4.php:
--------------------------------------------------------------------------------
1 | array($vendorDir . '/wyrihaximus/html-compress/src'),
10 | 'WebSharks\\CssMinifier\\' => array($vendorDir . '/websharks/css-minifier/src/includes/classes'),
11 | 'Patchwork\\' => array($vendorDir . '/patchwork/jsqueeze/src'),
12 | );
13 |
--------------------------------------------------------------------------------
/vendor/meenie/javascript-packer/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "meenie/javascript-packer",
3 | "description": "Composer hosted mirror of the PHP Version of Dean Edwards' JavaScript Packer",
4 | "keywords": ["javascript packer"],
5 | "homepage": "http://joliclic.free.fr/php/javascript-packer/en/",
6 | "license": "LGPL 2.1",
7 | "authors": [
8 | {
9 | "name": "Nicolas Martin",
10 | "role": "Developer"
11 | }
12 | ],
13 | "autoload": {
14 | "files": ["class.JavaScriptPacker.php"]
15 | }
16 | }
--------------------------------------------------------------------------------
/vendor/meenie/javascript-packer/readme.txt:
--------------------------------------------------------------------------------
1 | PHP 5 :
2 | use class.JavaScriptPacker.php (Tested under PHP 5.1.2, 5.1.3, 5.1.4, 5.2.3.)
3 | - usage and comments in source.
4 | - there is 2 examples in this archive for PHP 5,
5 | 'example-file.php' and example-inline.php
6 |
7 | PHP 4 :
8 | use class.JavaScriptPacker.php4, it's an adaptation for PHP4.
9 | The examples in this archive will not work directly with PHP 4, they are
10 | writed in PHP5, you'll need to adapt them. If some functions are missing in
11 | PHP 4, you can find their equivalent here :
12 | http://pear.php.net/package/PHP_Compat
13 |
--------------------------------------------------------------------------------
/vendor/natxet/CssMin/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "natxet/cssmin",
3 | "description": "Minifying CSS",
4 | "type": "library",
5 | "keywords": ["css","minify"],
6 | "homepage": "http://code.google.com/p/cssmin/",
7 | "license": "MIT",
8 | "authors": [
9 | {
10 | "name": "Joe Scylla",
11 | "email": "joe.scylla@gmail.com",
12 | "homepage": "https://profiles.google.com/joe.scylla"
13 | }
14 | ],
15 | "require": {
16 | "php": ">=5.0"
17 | },
18 | "autoload": {
19 | "classmap": ["src/"]
20 | },
21 | "extra": {
22 | "branch-alias": {
23 | "dev-master": "3.0-dev"
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/vendor/wyrihaximus/html-compress/.dunitconfig:
--------------------------------------------------------------------------------
1 | // the list of docker images to run against
2 | images="
3 | vectorface/php5.4
4 | vectorface/php5.5
5 | vectorface/php5.6
6 | vectorface/hhvm";
7 |
8 |
9 | // a flag indicating whether to run the syntax check
10 | checkSyntax="true";
11 | // the syntax command to execute
12 | syntaxCommand="find /opt/source -type f -name \"*.php\" ! -path \"*/vendor/*\" -print0 | xargs -0 -n 1 -P 8 php -l | grep -v 'No syntax errors'"
13 |
14 | // a flag indicating whether to run the phpunit test suite
15 | runTests="true";
16 | // the phpunit command to execute
17 | unitTestsCommand="/opt/source/vendor/bin/phpunit"
18 |
--------------------------------------------------------------------------------
/vendor/wyrihaximus/html-compress/Makefile:
--------------------------------------------------------------------------------
1 | all: cs dunit unit
2 | travis: cs unit-travis
3 |
4 | init:
5 | if [ ! -d vendor ]; then composer install; fi;
6 |
7 | cs: init
8 | ./vendor/bin/phpcs --standard=PSR2 src/
9 |
10 | unit: init
11 | ./vendor/bin/phpunit --coverage-text --coverage-html covHtml
12 |
13 | unit-travis: init
14 | ./vendor/bin/phpunit --coverage-text --coverage-clover ./build/logs/clover.xml
15 |
16 | dunit: init
17 | ./vendor/bin/dunit
18 |
19 | travis-coverage: init
20 | if [ -f ./build/logs/clover.xml ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover ./build/logs/clover.xml; fi
21 |
--------------------------------------------------------------------------------
/vendor/wyrihaximus/html-compress/src/Compressor/ReturnCompressor.php:
--------------------------------------------------------------------------------
1 | execute($source);
18 |
19 | if (strlen($source) > strlen($result)) {
20 | return $result;
21 | }
22 |
23 | return $source;
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/wyrihaximus/html-compress/src/Compressor/CompressorInterface.php:
--------------------------------------------------------------------------------
1 | =5.3",
17 | "ext-mbstring": "*"
18 | },
19 | "platform-dev": []
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/patchwork/jsqueeze/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "patchwork/jsqueeze",
3 | "type": "library",
4 | "description": "Efficient JavaScript minification in PHP",
5 | "keywords": ["javascript","compression","minification"],
6 | "homepage": "https://github.com/tchwork/jsqueeze",
7 | "license": "(Apache-2.0 or GPL-2.0)",
8 | "authors": [
9 | {
10 | "name": "Nicolas Grekas",
11 | "email": "p@tchwork.com"
12 | }
13 | ],
14 | "require": {
15 | "php": ">=5.3.0"
16 | },
17 | "autoload": {
18 | "psr-4": {
19 | "Patchwork\\": "src/"
20 | }
21 | },
22 | "extra": {
23 | "branch-alias": {
24 | "dev-master": "2.0-dev"
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/vendor/wyrihaximus/html-compress/src/Compressor/JavaScriptPackerCompressor.php:
--------------------------------------------------------------------------------
1 | pack();
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/wyrihaximus/html-compress/src/Compressor/JSMinCompressor.php:
--------------------------------------------------------------------------------
1 | = 3) {
11 | $src = $argv[1];
12 | $out = $argv[2];
13 | } else {
14 | echo 'you must specify a source file and a result filename',"\n";
15 | echo 'example :', "\n", 'php example-file.php myScript-src.js myPackedScript.js',"\n";
16 | return;
17 | }
18 | */
19 |
20 | require 'class.JavaScriptPacker.php';
21 |
22 | $script = file_get_contents($src);
23 |
24 | $t1 = microtime(true);
25 |
26 | $packer = new JavaScriptPacker($script, 'Normal', true, false);
27 | $packed = $packer->pack();
28 |
29 | $t2 = microtime(true);
30 | $time = sprintf('%.4f', ($t2 - $t1) );
31 | echo 'script ', $src, ' packed in ' , $out, ', in ', $time, ' s.', "\n";
32 |
33 | file_put_contents($out, $packed);
34 | ?>
35 |
--------------------------------------------------------------------------------
/vendor/wyrihaximus/html-compress/src/Compressor/JSqueezeCompressor.php:
--------------------------------------------------------------------------------
1 | squeeze($string);
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/vendor/linkorb/jsmin-php/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "linkorb/jsmin-php",
3 | "description": "Unofficial package of jsmin-php",
4 | "homepage": "http://www.github.com/linkorb/jsmin-php",
5 | "keywords": ["minify", "jsmin", "javascript"],
6 | "type": "library",
7 | "authors": [
8 | {
9 | "name": "Joost Faassen",
10 | "email": "j.faassen@linkorb.com",
11 | "role": "Packaging for composer"
12 | },
13 | {
14 | "name": "Douglas Crockford",
15 | "email": "douglas@crockford.com",
16 | "role": ""
17 | },
18 | {
19 | "name": "Ryan Grove",
20 | "email": "ryan@wonko.com",
21 | "role": "PHP port"
22 | },
23 | {
24 | "name": "Adam Gofort",
25 | "email": "aag@adamgoforth.com",
26 | "role": "Updates to the PHP port"
27 | }
28 | ],
29 | "require": {
30 | "php": ">=5.0.0"
31 | },
32 | "autoload": {
33 | "classmap": ["src/"]
34 | },
35 | "license": "MIT"
36 | }
37 |
--------------------------------------------------------------------------------
/vendor/composer/LICENSE:
--------------------------------------------------------------------------------
1 |
2 | Copyright (c) 2016 Nils Adermann, Jordi Boggiano
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining a copy
5 | of this software and associated documentation files (the "Software"), to deal
6 | in the Software without restriction, including without limitation the rights
7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 | copies of the Software, and to permit persons to whom the Software is furnished
9 | to do so, subject to the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be included in all
12 | copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 | THE SOFTWARE.
21 |
22 |
--------------------------------------------------------------------------------
/vendor/wyrihaximus/html-compress/src/Patterns.php:
--------------------------------------------------------------------------------
1 | |
]*>?)(.*?)(
)!is';
21 | const MATCH_TEXTAREA = '!(