Download the PHP package crypto_scythe/m_nify without Composer

On this page you can find all versions of the php package crypto_scythe/m_nify. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package m_nify

m_nify - Simple JavaScript / CSS Minifier

Simple PHP library for minifying and concatenating JavaScript and CSS files for use in my projects.

Installing

File composer.json

{
  "require": {
    "crypto_scythe/m_nify": "*"
  }
}

Then on command line:

composer install

Usage

To minify the files just add the GET parameter files to the file which instantiates the m_nify object like this:

http://example.com/m_nify.php?files=/path/to/first_file.css,/path/to/second_file.css

Options

Per default m_nify uses the DOCUMENT_ROOT for fetching the file. If you have your files in a different location you need to define the path like this before instantiating the m_nify object.

define( 'M_NIFY_PATH', $_SERVER['DOCUMENT_ROOT'] . '/path/to/files' );

By using this you can shorten the paths or restrict it to a specific folder.

Additional Information

m_nify automatically removes ".." from given file paths and automatically adds "/" in front of them so make sure you don't use relative paths when specifying files. However the ".." is allowed in the M_NIFY_PATH constant.

License

m_nify is licensed under the MIT License. See the LICENSE file for details.

Used libraries

JShrink from Robert Hafner - Github
CssMin from Joe Scylla - Github / Google Code


All versions of m_nify with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
natxet/cssmin Version 3.0.*
tedivm/jshrink Version 1.0.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package crypto_scythe/m_nify contains the following files

Loading the files please wait ....