{"_id":"@aquafadas/gulp-php-minify","_rev":"13-ee6da6eed4fc548e710b365d26b594ea","name":"@aquafadas/gulp-php-minify","description":"Gulp.js plugin minifying PHP source code by removing comments and whitespace.","dist-tags":{"latest":"0.3.1"},"versions":{"0.2.0":{"description":"Gulp.js plugin minifying PHP source code by removing comments and whitespace.","homepage":"https://github.com/aquafadas-com/gulp-php-minify","name":"@aquafadas/gulp-php-minify","author":{"name":"Aquafadas","email":"opensource@aquafadas.com"},"bugs":{"url":"https://github.com/aquafadas-com/gulp-php-minify/issues"},"license":"Apache-2.0","main":"./lib/index.js","repository":{"type":"git","url":"git+https://github.com/aquafadas-com/gulp-php-minify.git"},"version":"0.2.0","devDependencies":{"@cedx/gulp-david":"^2.0.1","codacy-coverage":"^1.1.3","del":"^2.2.1","gulp":"^3.9.1","gulp-istanbul":"^1.0.0","gulp-jshint":"^2.0.1","gulp-load-plugins":"^1.2.4","gulp-mocha":"^2.2.0","gulp-zip":"^3.2.0","jsdoc":"^3.4.0","jshint":"^2.9.2","vinyl":"^1.1.1"},"engines":{"node":">=6.3.0"},"jshintConfig":{"esversion":6,"freeze":true,"futurehostile":true,"latedef":"nofunc","mocha":true,"noarg":true,"nocomma":true,"node":true,"nonbsp":true,"nonew":true,"singleGroups":true,"trailing":true,"typed":true,"undef":true,"unused":true,"varstmt":true},"keywords":["gulp","gulpplugin","minify","php"],"scripts":{"coverage":"codacy-coverage < var/lcov.info","test":"gulp test"},"gitHead":"5ec1f2970416955b8f8f3d0cffd23822fa477305","_id":"@aquafadas/gulp-php-minify@0.2.0","_shasum":"7e6e355bb47c713677db22a0e1cbeb6a2e637f28","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"aquafadas","email":"opensource@aquafadas.com"},"dist":{"shasum":"7e6e355bb47c713677db22a0e1cbeb6a2e637f28","tarball":"https://registry.npmjs.org/@aquafadas/gulp-php-minify/-/gulp-php-minify-0.2.0.tgz","integrity":"sha512-MZcsh98hIDTXJ1E9w+om2QpsTHpLA98E5AeCEHE3iVC2rlsHF30syHwHtoD1PqjEkkAxjnBgGDaDOFu7EiE5og==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKaks7UlACaua8d7PX/OSeCmkmjDVZSg0/0nmtYTO+dQIgVDqVnfTkcrjt9dYSIgWJ5r9aipU9V+q3yjjJYydWe1k="}]},"maintainers":[{"name":"aquafadas","email":"opensource@aquafadas.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/gulp-php-minify-0.2.0.tgz_1469323041965_0.7496438201051205"},"deprecated":"WARNING: This package is abandoned and no longer maintained. Please use '@cedx/gulp-php-minify' instead. See 'https://github.com/cedx/gulp-php-minify' for more information."},"0.3.0":{"description":"Gulp.js plugin minifying PHP source code by removing comments and whitespace.","homepage":"https://github.com/aquafadas-com/gulp-php-minify","name":"@aquafadas/gulp-php-minify","author":{"name":"Aquafadas","email":"opensource@aquafadas.com"},"bugs":{"url":"https://github.com/aquafadas-com/gulp-php-minify/issues"},"license":"Apache-2.0","main":"./lib/index.js","repository":{"type":"git","url":"git+https://github.com/aquafadas-com/gulp-php-minify.git"},"version":"0.3.0","dependencies":{"portfinder":"^1.0.7","superagent":"^2.2.0"},"devDependencies":{"@cedx/gulp-david":"^2.0.3","codacy-coverage":"^2.0.0","del":"^2.2.2","gulp":"^3.9.1","gulp-istanbul":"^1.1.0","gulp-jshint":"^2.0.1","gulp-load-plugins":"^1.2.4","gulp-mocha":"^3.0.1","gulp-zip":"^3.2.0","jsdoc":"^3.4.0","jshint":"^2.9.3","vinyl":"^1.2.0"},"engines":{"node":">=6.4.0"},"jshintConfig":{"esversion":6,"freeze":true,"futurehostile":true,"latedef":"nofunc","mocha":true,"noarg":true,"nocomma":true,"node":true,"nonbsp":true,"nonew":true,"singleGroups":true,"trailing":true,"typed":true,"undef":true,"unused":true,"varstmt":true},"keywords":["gulp","gulpplugin","minify","php"],"scripts":{"coverage":"codacy-coverage < var/lcov.info","test":"gulp test"},"gitHead":"4ef94819f6ccf59527d52099fa8ee73f904ba37d","_id":"@aquafadas/gulp-php-minify@0.3.0","_shasum":"635c37172e88e1cfbbe31e67c09a76e6a77a94fa","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"aquafadas","email":"opensource@aquafadas.com"},"dist":{"shasum":"635c37172e88e1cfbbe31e67c09a76e6a77a94fa","tarball":"https://registry.npmjs.org/@aquafadas/gulp-php-minify/-/gulp-php-minify-0.3.0.tgz","integrity":"sha512-/JL0rq/Pw0Mui381zjGi1aeJDrIR+kReBWHTvCCpb1i7fPmmA5LqxEdSILTDCawhac7UMDzxuv0QwEYFIsIohQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIArGTMn8YntLt8QHxX3LH1DYfeqYa0cZnhSz4hZKc/AIhAKQTp8vCaanwXOBd+hvBO4q3QFOfyTXTLEOb+9RwOf73"}]},"maintainers":[{"name":"aquafadas","email":"opensource@aquafadas.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/gulp-php-minify-0.3.0.tgz_1471607153676_0.5866296601016074"},"deprecated":"WARNING: This package is abandoned and no longer maintained. Please use '@cedx/gulp-php-minify' instead. See 'https://github.com/cedx/gulp-php-minify' for more information."},"0.3.1":{"description":"Gulp.js plugin minifying PHP source code by removing comments and whitespace.","homepage":"https://github.com/aquafadas-com/gulp-php-minify","name":"@aquafadas/gulp-php-minify","author":{"name":"Aquafadas","email":"opensource@aquafadas.com"},"bugs":{"url":"https://github.com/aquafadas-com/gulp-php-minify/issues"},"license":"Apache-2.0","main":"./lib/index.js","repository":{"type":"git","url":"git+https://github.com/aquafadas-com/gulp-php-minify.git"},"version":"0.3.1","dependencies":{"portfinder":"^1.0.7","superagent":"^2.2.0"},"devDependencies":{"@cedx/gulp-david":"^2.0.3","codacy-coverage":"^2.0.0","del":"^2.2.2","gulp":"^3.9.1","gulp-istanbul":"^1.1.0","gulp-jshint":"^2.0.1","gulp-load-plugins":"^1.2.4","gulp-mocha":"^3.0.1","gulp-zip":"^3.2.0","jsdoc":"^3.4.0","jshint":"^2.9.3","vinyl":"^1.2.0"},"engines":{"node":">=6.4.0"},"jshintConfig":{"esversion":6,"freeze":true,"futurehostile":true,"latedef":"nofunc","mocha":true,"noarg":true,"nocomma":true,"node":true,"nonbsp":true,"nonew":true,"singleGroups":true,"trailing":true,"typed":true,"undef":true,"unused":true,"varstmt":true},"keywords":["gulp","gulpplugin","minify","php"],"scripts":{"coverage":"codacy-coverage < var/lcov.info","test":"gulp test"},"gitHead":"005f9ebc31ef1a7e9174244c22811ce8f6688160","_id":"@aquafadas/gulp-php-minify@0.3.1","_shasum":"83c02e1d5fbeb93fa5b8085c574214b649c2ea10","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"aquafadas","email":"opensource@aquafadas.com"},"dist":{"shasum":"83c02e1d5fbeb93fa5b8085c574214b649c2ea10","tarball":"https://registry.npmjs.org/@aquafadas/gulp-php-minify/-/gulp-php-minify-0.3.1.tgz","integrity":"sha512-LanOuYvcA87LbvFtylE2ZoYQK+uJZK8eZO0oNA60dVAOIWkNs8seJl0c6AdyDChZWfavyJsbYa76Tq3FJZisFg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDH+orwJjKWryernk0GoANKG0YoaGV2ZTINyso1Uzu3iAIgRCed8xMZVhKqD6uLQNKZXI8iaY2y6RccH/8BYdsO/pI="}]},"maintainers":[{"name":"aquafadas","email":"opensource@aquafadas.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/gulp-php-minify-0.3.1.tgz_1471628060153_0.17698838096112013"},"deprecated":"WARNING: This package is abandoned and no longer maintained. Please use '@cedx/gulp-php-minify' instead. See 'https://github.com/cedx/gulp-php-minify' for more information."}},"readme":"# Gulp-PHP-Minify\n![Release](http://img.shields.io/npm/v/@aquafadas/gulp-php-minify.svg) ![License](http://img.shields.io/npm/l/@aquafadas/gulp-php-minify.svg) ![Downloads](http://img.shields.io/npm/dt/@aquafadas/gulp-php-minify.svg) ![Dependencies](http://img.shields.io/david/aquafadas-com/gulp-php-minify.svg) ![Code quality](https://img.shields.io/codacy/grade/7a9f7db5e0174d139641bcc3905cbfed.svg)\n\n[Gulp.js](http://gulpjs.com) plugin minifying [PHP](http://php.net) source code by removing comments and whitespace.\n\n## Getting Started\nIf you haven't used [Gulp.js](http://gulpjs.com) before, be sure to check out the [related documentation](https://github.com/gulpjs/gulp/blob/master/docs/README.md), as it explains how to create a `gulpfile.js` as well as install and use plugins.\nOnce you're familiar with that process, you may install this plugin with this command:\n\n```shell\n$ npm install --save-dev @aquafadas/gulp-php-minify\n```\n\nOnce the plugin has been installed, it may be enabled inside your `gulpfile.js`.\n\n## Usage\nThe plugin takes a list of [PHP](http://php.net) scripts as input, and removes the comments and whitespace in these files by applying the [`php_strip_whitespace()`](http://php.net/manual/en/function.php-strip-whitespace.php) function on their contents:\n\n```javascript\nconst gulp = require('gulp');\nconst phpMinify = require('@aquafadas/gulp-php-minify');\n\ngulp.task('minify:php', () => gulp.src('path/to/lib/**/*.php', {read: false})\n  .pipe(phpMinify())\n  .pipe(gulp.dest('path/to/out'))\n);\n```\n\nThe plugin only needs the file paths, so you should specify the `read` option to `false` when providing the file list, and you should not have any other plugin before it.\n\n## Options\n\n#### binary\nThe plugin relies on the availability of the [PHP](http://php.net) executable on the target system: it requires a version **5.5 or later**. By default, the plugin will use the `php` binary found on the system path.\n\nIf the plugin cannot find the default `php` binary, or if you want to use a different one, you can provide the path to the `php` executable by using the `binary` option:\n\n```javascript\nreturn gulp.src('path/to/lib/**/*.php', {read: false})\n  .pipe(phpMinify({binary: 'C:\\\\Program Files\\\\PHP\\\\php.exe'}))\n  .pipe(gulp.dest('path/to/out'));\n```\n\n#### silent\nBy default, the plugin prints to the standard output the paths of the minified scripts. You can disable this output by setting the `silent` option to `true`.\n\n```javascript\nreturn gulp.src('path/to/lib/**/*.php', {read: false})\n  .pipe(phpMinify({silent: true}))\n  .pipe(gulp.dest('path/to/out'));\n```\n\n## See Also\n- [Code Quality](https://www.codacy.com/app/aquafadas/gulp-php-minify)\n- [Continuous Integration](https://travis-ci.org/aquafadas-com/gulp-php-minify)\n\n## License\n[Gulp-PHP-Minify](https://www.npmjs.com/package/@aquafadas/gulp-php-minify) is distributed under the Apache License, version 2.0.\n","maintainers":[{"name":"aquafadas","email":"opensource@aquafadas.com"}],"time":{"modified":"2022-06-12T14:46:59.007Z","created":"2016-07-24T01:17:23.787Z","0.2.0":"2016-07-24T01:17:23.787Z","0.3.0":"2016-08-19T11:45:54.167Z","0.3.1":"2016-08-19T17:34:22.059Z"},"homepage":"https://github.com/aquafadas-com/gulp-php-minify","keywords":["gulp","gulpplugin","minify","php"],"repository":{"type":"git","url":"git+https://github.com/aquafadas-com/gulp-php-minify.git"},"author":{"name":"Aquafadas","email":"opensource@aquafadas.com"},"bugs":{"url":"https://github.com/aquafadas-com/gulp-php-minify/issues"},"license":"Apache-2.0","readmeFilename":"README.md","users":{"dragonfire1119":true,"emdubs":true,"jampui":true}}