{"id":17693101,"url":"https://github.com/toolstack/minify-php-cli","last_synced_at":"2025-03-30T23:13:07.530Z","repository":{"id":85642406,"uuid":"63187973","full_name":"toolstack/minify-php-cli","owner":"toolstack","description":"A PHP script you can run from a command line to minify javascript files.","archived":false,"fork":false,"pushed_at":"2016-09-13T20:12:10.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-06T04:41:20.746Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/toolstack.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":null,"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}},"created_at":"2016-07-12T19:49:57.000Z","updated_at":"2024-01-09T15:48:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"0b1b7c58-0a10-4078-8407-be287d48c705","html_url":"https://github.com/toolstack/minify-php-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolstack%2Fminify-php-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolstack%2Fminify-php-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolstack%2Fminify-php-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolstack%2Fminify-php-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toolstack","download_url":"https://codeload.github.com/toolstack/minify-php-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246390873,"owners_count":20769478,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-24T13:44:12.091Z","updated_at":"2025-03-30T23:13:07.511Z","avatar_url":"https://github.com/toolstack.png","language":"PHP","readme":"# Minify PHP CLI\n\nThis script provides a CLI interface to Minify JavaScript/CSS files.  It uses [@mcclay's](https://github.com/mrclay) PHP base [Minify code](https://github.com/mrclay/jsmin-php) to do the bulk of the work.\n\n## Usage\n\n`php cli.php \u003cscript\u003e \u003cscript\u003e \u003cdir\u003e`\n\n`\u003cscript\u003e` can be any JavaScript file that ends in '.js' or '.css' (it is double checked before being added to the file queue).\n`\u003cdir\u003e` can be any directory, the CLI script will look inside and find any '.js' or '.css' files and add them to the queue.\n\nYou can have as many `\u003cscript\u003e` and `\u003cdir\u003e`'s as you like (until you run out of memory of course).\n\nThe script will minify each file, creating a '.min.js' or '.min.css' version of it.\n\nIf a minified file already exists, the last modified time of the unminified file and the minified file will be compared, if the minified file is newer, it will be skipped.\n\nOutput is a simple summary of how many files were found, processed and skipped.\n\nThe script will run on Windows or *nix (and anywhere else that PHP runs more than likely).","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoolstack%2Fminify-php-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoolstack%2Fminify-php-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoolstack%2Fminify-php-cli/lists"}