tinyphp-class / jcompressor
Funciones de compresión
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Forks: 0
pkg:composer/tinyphp-class/jcompressor
Requires
- matthiasmullie/minify: ^1.3
- symfony/cache: ^6.3
This package is not auto-updated.
Last update: 2025-10-05 20:17:04 UTC
README
Instalación via composer
composer require tinyphp-class/jcompressor
Funciones
/** Compimir HTML de forma sencilla */
JCompressor::html(string $buffer): string
/** Comprimir contenido CSS */
JCompressor::css(string $content, bool $use_toptal = false, int|null $cache_time = null, string|null $cache_key = null): string
/** Comprimir contenido Javascript */
JCompressor::js(string $content, bool $use_toptal = false, int|null $cache_time = null, string|null $cache_key = null): string
/** Comprimir el contenido JSON */
JCompressor::json(string|array $content): string
/** Comprimir el contenido de un archivo CSS */
JCompressor::file_css(string $file, bool $use_toptal = false, int|null $cache_time = null, string|null $cache_key = null): string
/** Comprimir el contenido de un archivo Javascript */
JCompressor::file_js(string $file, bool $use_toptal = false, int|null $cache_time = null, string|null $cache_key = null): string