2017 © Pedro Peláez
 

library minify

A JS and CSS minifier tool (with additional benefits for projects using template engines such as Smarty)

image

opensolutions/minify

A JS and CSS minifier tool (with additional benefits for projects using template engines such as Smarty)

  • Wednesday, February 5, 2014
  • by barryo
  • Repository
  • 3 Watchers
  • 7 Stars
  • 30,242 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

Minify

Minify is a JS and CSS minifier toolkit (with support for generating templates for engines such as Smarty)., (*1)

Its main features are:, (*2)

  • automatically find all CSS/JS files in a given directory named xxx-blah.css where xxx is a three digit ordering / sequence number;
  • minify these files and create a single file bundle;
  • automatically generate template include files allowing production / development mode (i.e. use individual CSS/JS or bundles based on an application option);
  • versioning for those using CDNs, future expiry dates, etc to ensure clients load fresh JS/CSS bundles.

See the Example Usage section below., (*3)

Usage

Using Minify is as simple as copying the included minify-options.php.dist to minify-options.php and editing to suit you environment. Then run the script:, (*4)

./minify.php

A full destription of the available options is commented within minify-options.php.dist and the script has a help option:, (*5)

./minify.php --help

Installation Options

  • It's a simple script - you can just clone the directory;
  • Composer: require "opensolutions/minify": "dev-master"
  • Packagist: https://packagist.org/packages/opensolutions/minify

Example Usage

IXP Manager uses Minify. You can see IXP Manager's JS files here and its CSS files here., (*6)

The Minify script bundles the individual files into min.bundle-vX.css and min.bundle-vX.js files and also creates templates with logic for using the original uncompressed files or the compressed bundles in this file for CSS and this file for JS., (*7)

The configuration for generating these is here., (*8)

Used By

  • ePayroll - Online payroll processing and management.
  • IXP Manager - A web application to assist in the management of Internet Exchange Points (IXPs)
  • TallyStick - Focus on what you love to do, while we take care of tracking your time.
  • ViMbAdmin - Virtual Mailbox Administration

Do you use Minify? Do you want to get listed here? Drop us a note to info _at_ opensolutions _dot_ it or open a pull request., (*9)

Copyright (c) 2010 - 2014, Open Source Solutions Limited, Dublin, Ireland, (*10)

Released under the BSD license:, (*11)

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:, (*12)

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE., (*13)

Thirdparty Tools

Minify includes two thirdparty tools:, (*14)

The Versions

05/02 2014

dev-master

9999999-dev

A JS and CSS minifier tool (with additional benefits for projects using template engines such as Smarty)

  Sources   Download

BSD-2-Clause

minifier minify

05/02 2014

1.0.0

1.0.0.0

A JS and CSS minifier tool (with additional benefits for projects using template engines such as Smarty)

  Sources   Download

BSD-2-Clause

minifier minify