承接 hexydec/jslite 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hexydec/jslite

Composer 安装命令:

composer require hexydec/jslite

包简介

A token based Javascript parser/minifier designed for compressing inline scripts on the fly, written in PHP

README 文档

README

A Javascript compiler designed for minifying inline scripts, written in PHP.

Licence: MIT Status: Stable Tests Status Code Coverage

Description

Designed to complement HTMLdoc, JSlite is a Javascript compiler and minifier, designed for minifying inline Javascript on the fly. It can also be used for compressing larger documents.

The software is implemented as a compiler to ensure reliable, and comes with a full test suite.

Usage

To minify Javascript:

use hexydec\jslite\jslite;

$doc = new jslite();

// load from a variable
if ($doc->load($javascript) {

	// minify the document
	$doc->minify();

	// retrieve the javascript
	echo $doc->compile();
}

You can test out the minifier online at https://hexydec.com/apps/minify-js/, or run the supplied index.php file after installation.

Installation

The easiest way to get up and running is to use composer:

$ composer install hexydec/jslite

Test Suite

You can run the test suite like this:

Linux

$ vendor/bin/phpunit

Windows

> vendor\bin\phpunit

Support

JSlite supports PHP version 8.0+.

Documentation

Contributing

If you find an issue with JSlite, please create an issue in the tracker.

If you wish to fix an issue yourself, please fork the code, fix the issue, then create a pull request, and I will evaluate your submission.

Licence

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 11.73k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-03-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固