{"id":47669142,"url":"https://github.com/hexydec/jslite","last_synced_at":"2026-04-02T12:19:50.852Z","repository":{"id":56984062,"uuid":"290890526","full_name":"hexydec/jslite","owner":"hexydec","description":"A token based Javascript compiler/minifier designed for compressing inline scripts on the fly, written in PHP","archived":false,"fork":false,"pushed_at":"2026-03-24T22:38:40.000Z","size":209,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-26T04:10:34.812Z","etag":null,"topics":["compiler","compressing-inline-scripts","compression","javascript","minification"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hexydec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-08-27T21:59:00.000Z","updated_at":"2026-03-24T22:28:49.000Z","dependencies_parsed_at":"2025-07-16T01:39:19.915Z","dependency_job_id":"334136b5-2fe9-4f62-9f97-b70eb511bf44","html_url":"https://github.com/hexydec/jslite","commit_stats":{"total_commits":80,"total_committers":3,"mean_commits":"26.666666666666668","dds":0.08750000000000002,"last_synced_commit":"99ea66e6c95b09d85e1d4018f75ec027190f182b"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/hexydec/jslite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexydec%2Fjslite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexydec%2Fjslite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexydec%2Fjslite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexydec%2Fjslite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hexydec","download_url":"https://codeload.github.com/hexydec/jslite/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexydec%2Fjslite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31305988,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T09:48:21.550Z","status":"ssl_error","status_checked_at":"2026-04-02T09:48:19.196Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compiler","compressing-inline-scripts","compression","javascript","minification"],"created_at":"2026-04-02T12:19:47.412Z","updated_at":"2026-04-02T12:19:50.831Z","avatar_url":"https://github.com/hexydec.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSlite: PHP Javascript Minifier\nA Javascript compiler designed for minifying inline scripts, written in PHP.\n\n![Licence: MIT](https://img.shields.io/badge/Licence-MIT-lightgrey.svg)\n![Status: Stable](https://img.shields.io/badge/Status-Stable-Green.svg)\n[![Tests Status](https://github.com/hexydec/jslite/actions/workflows/tests.yml/badge.svg)](https://github.com/hexydec/jslite/actions/workflows/tests.yml)\n[![Code Coverage](https://codecov.io/gh/hexydec/jslite/branch/master/graph/badge.svg)](https://app.codecov.io/gh/hexydec/jslite)\n\n## Description\n\nDesigned to complement [HTMLdoc](http://github.com/hexydec/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.\n\nThe software is implemented as a compiler to ensure reliable, and comes with a full test suite.\n\n## Usage\n\nTo minify Javascript:\n\n```php\nuse hexydec\\jslite\\jslite;\n\n$doc = new jslite();\n\n// load from a variable\nif ($doc-\u003eload($javascript) {\n\n\t// minify the document\n\t$doc-\u003eminify();\n\n\t// retrieve the javascript\n\techo $doc-\u003ecompile();\n}\n```\n\nYou can test out the minifier online at [https://hexydec.com/apps/minify-js/](https://hexydec.com/apps/minify-js/), or run the supplied `index.php` file after installation.\n\n## Installation\n\nThe easiest way to get up and running is to use composer:\n\n```\n$ composer install hexydec/jslite\n```\n\n## Test Suite\n\nYou can run the test suite like this:\n\n### Linux\n```\n$ vendor/bin/phpunit\n```\n### Windows\n```\n\u003e vendor\\bin\\phpunit\n```\n\n## Support\n\nJSlite supports PHP version 8.0+.\n\n## Documentation\n\n- [API Reference](docs/api/readme.md)\n\n## Contributing\n\nIf you find an issue with JSlite, please create an issue in the tracker.\n\nIf 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.\n\n## Licence\n\nThe MIT License (MIT). Please see [License File](LICENCE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexydec%2Fjslite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhexydec%2Fjslite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexydec%2Fjslite/lists"}