Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 22, 2024 via composer

tubalmartin/cssmin v4.1.1

A PHP port of the YUI CSS compressor
Package summary
Share
0
issues
1
license
1
BSD-3-Clause
Package created
21 Sep 2014
Version published
15 Jan 2018
Maintainers
1
Total deps
1
Direct deps
0
License
BSD-3-Clause

Issues

0
This package has no issues

Licenses

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
tubalmartin/cssmin@v4.1.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of tubalmartin/cssmin 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does tubalmartin/cssmin do?

Tubalmartin/Cssmin is a PHP port of the YUI CSS compressor. Its main objective is to significantly reduce the size of CSS code, which enhances the loading speed of webpages. This Composer package is based on version 2.4.8 of the original YUI compressor, and it includes modifications and features not present in the YUI version. Among its various features, it preserves CSS comments that are important for licensing purposes and splits long CSS lines for improved compatibility with source control tools.

How do you use tubalmartin/cssmin?

Using Tubalmartin/Cssmin begins with the Composer command $ composer.phar require tubalmartin/cssmin to include this library into your project. Once installed, you make use of the library by requiring Composer's autoloader file and creating a new instance of the compressor:

<?php

require './vendor/autoload.php';

use tubalmartin\CssMin\Minifier as CSSmin;

// Use it!
$compressor = new CSSmin;

To use this library to compress CSS code, you may follow the example detailed in the readme:

<?php

require './vendor/autoload.php';

use tubalmartin\CssMin\Minifier as CSSmin;

$input_css = file_get_contents('test.css');

$compressor = new CSSmin;

$compressor->keepSourceMapComment();
$compressor->removeImportantComments();
$compressor->setLineBreakPosition(1000);

$compressor->run($input_css);

echo $output_css;

Where are the tubalmartin/cssmin docs?

The Tubalmartin/Cssmin documentation can be found in the readme on its GitHub page at github.com/tubalmartin/YUI-CSS-compressor-PHP-port. Presented in an organized and detailed manner, the documentation includes a table of contents that guides users through sections including Installation & Requirements, How to Use, Tests, API Reference, and a Changelog. Each section provides comprehensive information, example usage of methods, command-line interface commands, and a graphic user interface walkthrough. Detailed explanations for every available method calls in the API are also provided.