├── _config.yml
├── .gitchange
├── .gitmodules
├── src
├── includes
│ ├── stub.php
│ ├── phar-stub.php
│ └── classes
│ │ ├── Benchmark.php
│ │ └── HookApi.php
└── .htaccess
├── tests
├── .htaccess
└── test.php
├── .build.props
├── .github
├── CONTRIBUTING.md
└── ISSUE_TEMPLATE.md
├── composer.json
├── .gitignore
├── CHANGELOG.md
├── composer.lock
├── .gitattributes
├── README.md
└── LICENSE.txt
/_config.yml:
--------------------------------------------------------------------------------
1 | theme: jekyll-theme-cayman
--------------------------------------------------------------------------------
/.gitchange:
--------------------------------------------------------------------------------
1 | 1440139757
2 | 853d9120b42cf4f2eabe2f35ea18a6ace7170ea6:58482bb88a66f5.16980470
3 |
--------------------------------------------------------------------------------
/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "phings"]
2 | path = phings
3 | url = https://github.com/websharks/phings.git
4 |
--------------------------------------------------------------------------------
/src/includes/stub.php:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/tests/.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 |
--------------------------------------------------------------------------------
/.build.props:
--------------------------------------------------------------------------------
1 | project_title = WebSharks HTML Compressor
2 |
3 | project_owner = websharks
4 | project_slug = html-compressor
5 |
6 | project_text_domain = html-compressor
7 | project_slack_channel = html-compressor
8 |
9 | project_namespace = WebSharks\\HtmlCompressor
10 | project_sub_namespace = HtmlCompressor
11 |
12 | project_version = %y%m%d.%now
13 |
14 | project_php_required_version = 5.4
15 | project_php_tested_up_to_version = ${php.version}
16 |
--------------------------------------------------------------------------------
/.github/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | ## Before Posting an Issue
2 |
3 | - Try to add as much detail as possible. Be specific!
4 | - If you're requesting a new feature, explain why you'd like it to be added.
5 | - Search this repository (top of the page) to be sure it has not been fixed or reported already.
6 | - GitHub issues ARE NOT FOR SUPPORT! If you have questions, please visit the website
7 | where you downloaded the software and use an official support channel for customers.
8 |
9 | ## Before You Report a Bug
10 |
11 | - Use the latest stable release of the software.
12 | - Disable all other components to ensure it's a real bug and not a conflict.
13 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | ## EXPLANATION OF THE ISSUE
2 |
3 |
4 |
5 | ## STEPS TO REPRODUCE THE ISSUE
6 |
7 |
8 |
9 | ## BEHAVIOR THAT I EXPECTED
10 |
11 |
12 |
13 | ## BEHAVIOR THAT I OBSERVED
14 |
15 |
16 |
17 |
33 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "websharks/html-compressor",
3 | "homepage": "https://github.com/websharks/html-compressor",
4 | "description": "Combines & compresses CSS/JS/HTML code.",
5 | "keywords": [
6 | "websharks",
7 | "html",
8 | "compressor"
9 | ],
10 | "type": "library",
11 | "license": "GPL-3.0+",
12 | "authors": [{
13 | "name": "websharks",
14 | "homepage": "http://websharks-inc.com/",
15 | "role": "company"
16 | }, {
17 | "name": "jaswsinc",
18 | "homepage": "http://jaswsinc.com/",
19 | "role": "developer"
20 | }, {
21 | "name": "raamdev",
22 | "homepage": "http://raam.org/",
23 | "role": "developer"
24 | }],
25 | "support": {
26 | "source": "https://github.com/websharks/html-compressor",
27 | "issues": "https://github.com/websharks/html-compressor/issues"
28 | },
29 |
30 | "require": {
31 | "php": ">=5.4",
32 | "ext-openssl": "*",
33 | "ext-curl": "*",
34 | "ext-mbstring": "*",
35 | "websharks/js-minifier": "dev-master",
36 | "websharks/css-minifier": "dev-master"
37 | },
38 | "minimum-stability": "dev",
39 | "prefer-stable": true,
40 |
41 | "autoload": {
42 | "psr-4": {
43 | "WebSharks\\HtmlCompressor\\": "src/includes/classes"
44 | }
45 | },
46 |
47 | "config": {
48 | "vendor-dir": "src/vendor",
49 | "preferred-install": "dist"
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Ignore ---------------------------------------------------------------------------------------------------------------
2 |
3 | # Local
4 |
5 | .~*
6 |
7 | # Logs
8 |
9 | *.log
10 |
11 | # Backups
12 |
13 | *~
14 | *.bak
15 |
16 | # Vagrant
17 |
18 | .vagrant/
19 |
20 | # TypeScript
21 |
22 | typings/
23 |
24 | # IntelliJ
25 |
26 | .idea/
27 |
28 | # Sublime
29 |
30 | *.sublime-project
31 | *.sublime-workspace
32 |
33 | # Vendor
34 |
35 | vendor/
36 |
37 | # NodeJS
38 |
39 | node_modules/
40 |
41 | # SASS
42 |
43 | .sass-cache/
44 |
45 | # Elastic Beanstalk
46 |
47 | .elasticbeanstalk/
48 |
49 | # CTAGs
50 |
51 | *.ctags
52 | *.tags
53 |
54 | # VCS
55 |
56 | .git/
57 |
58 | .svn/
59 | _svn/
60 |
61 | CVS/
62 | .cvsignore
63 |
64 | .bzr/
65 | .bzrignore
66 |
67 | .hg/
68 | .hgignore
69 |
70 | SCCS/
71 | RCS/
72 |
73 | # PC Files
74 |
75 | $RECYCLE.BIN/
76 | Desktop.ini
77 | Thumbs.db
78 | ehthumbs.db
79 |
80 | # Mac Files
81 |
82 | .AppleDB
83 | .AppleDouble
84 | .AppleDesktop
85 | .com.apple.timemachine.donotpresent
86 | Network Trash Folder
87 | Temporary Items
88 | .LSOverride
89 | .Spotlight-V100
90 | .VolumeIcon.icns
91 | .TemporaryItems
92 | .fseventsd
93 | .DS_Store
94 | .Trashes
95 | .apdisk
96 | Icon?
97 | !Icons
98 | ._*
99 |
100 | # ----------------------------------------------------------------------------------------------------------------------
101 |
102 | #
103 | # Put your rules in custom comment markers.
104 | #
105 |
--------------------------------------------------------------------------------
/tests/test.php:
--------------------------------------------------------------------------------
1 |
7 |
8 | Test
9 |
15 |
32 |
38 |
39 |
40 | Testing one, two, three.
41 |
42 |