Download the PHP package jdz/cssmaker without Composer

On this page you can find all versions of the php package jdz/cssmaker. 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 cssmaker

CssMaker

A modern PHP library for building optimized CSS files from LESS sources with advanced preprocessing, autoprefixing, and minification capabilities.

Features

Installation

Node.js Dependencies

CssMaker requires Node.js tools for CSS processing. Install them automatically:

Dependencies

jdz/fontmanager is required for font management and @font-face generation. jdz/data is required for data handling and processing. jdz/output is required for output handling and logging.

Quick Start

File Categories

CssMaker organizes LESS files into logical categories processed in order. You can extend the CssMaker class and add your own categories as needed.

Core Categories

Layout Categories

Responsive Categories

Configuration Files

PostCSS Configuration (postcss.json)

Browserslist Configuration (.browserslistrc)

Advanced Features

Variable Management

Custom Output Handler

Processing Pipeline

The CssMaker follows a structured build pipeline:

  1. ๐Ÿ”ง Preparation

    • Load variables from YAML/LESS files
    • Validate directory structure
    • Initialize temporary file management
  2. ๐Ÿ“ Content Merging

    • Merge variables into LESS format
    • Combine mixins and normalize files
    • Add font @font-face declarations
    • Process files by category with media query wrapping
  3. โš™๏ธ LESS Compilation

    • Compile merged LESS to CSS using lessc
    • Handle variables, mixins, nesting, and functions
    • Generate source CSS file
  4. ๐ŸŽฏ PostCSS Processing

    • Apply autoprefixer for vendor prefixes
    • Process with PostCSS plugins
    • Use browserslist configuration
  5. ๐Ÿงน Optimization

    • Remove CSS comments and unnecessary whitespace
    • Clean and normalize formatting
    • Apply minification
  6. ๐Ÿ“ฆ Output Generation
    • Generate final CSS file
    • Create minified version (.min.css)
    • Clean up temporary files

Directory Structure

Error Handling

CssMaker provides comprehensive error handling:

Common Error Scenarios:

Testing

CssMaker includes a comprehensive test suite. See TESTS.md for detailed information.

Example Usage

See the complete working example:

The example demonstrates:

Browser Support

Default configuration targets:

Customize in .browserslistrc:

Requirements

PHP Dependencies

Performance Tips

  1. Use file caching - Only rebuild when source files change
  2. Minimize file count - Combine related LESS files
  3. Optimize images - Use appropriate formats and compression
  4. Monitor build time - Profile with verbose output
  5. Cache font files - Reuse font declarations across builds

Troubleshooting

Common Issues

"lessc command not found"

"postcss command not found"

"minify command not found"

"Permission denied" errors

"LESS compilation failed"

Debug Mode

Enable verbose output for troubleshooting:

License

MIT License - see LICENSE file for details.

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Add tests for new functionality
  4. Ensure all tests pass (composer test)
  5. Follow PSR-12 coding standards
  6. Update documentation as needed
  7. Commit changes (git commit -m 'Add amazing feature')
  8. Push to branch (git push origin feature/amazing-feature)
  9. Open a Pull Request

Changelog

See CHANGELOG.md for version history and updates.

Support


All versions of cssmaker with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
jdz/output Version ^1.0
jdz/data Version ^2.0
symfony/yaml Version ^7.4
symfony/process Version ^7.4
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 jdz/cssmaker contains the following files

Loading the files please wait ...