{"id":16903246,"url":"https://github.com/dpup/php-closure","last_synced_at":"2025-07-21T18:35:45.439Z","repository":{"id":140432761,"uuid":"32092095","full_name":"dpup/php-closure","owner":"dpup","description":null,"archived":false,"fork":false,"pushed_at":"2017-10-31T15:48:01.000Z","size":17,"stargazers_count":11,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-11T14:43:17.929Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dpup.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2015-03-12T17:45:26.000Z","updated_at":"2024-02-24T17:52:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"2401805d-39a1-40c9-88a0-a290ef0f8351","html_url":"https://github.com/dpup/php-closure","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dpup/php-closure","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpup%2Fphp-closure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpup%2Fphp-closure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpup%2Fphp-closure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpup%2Fphp-closure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dpup","download_url":"https://codeload.github.com/dpup/php-closure/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpup%2Fphp-closure/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266352840,"owners_count":23915826,"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","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-13T18:12:07.160Z","updated_at":"2025-07-21T18:35:45.422Z","avatar_url":"https://github.com/dpup.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Library for the Google Closure Compiler\n\nA PHP class for optimizing and serving JavaScript sources using Google's\n[Closure Compiler web service](http://code.google.com/closure/compiler/docs/gettingstarted_api.html).\nThe sources will be compiled on demand and cached locally for performance.\n\nExample usage:\n\n```php\ninclude(\"libs/php-closure.php\");\n\n$c = new PhpClosure();\n$c-\u003eadd(\"my-app.js\")\n  -\u003eadd(\"popup.js\")\n  -\u003eadvancedMode()\n  -\u003euseClosureLibrary()\n  -\u003ecacheDir(\"/tmp/js-cache/\")\n  -\u003ewrite();\n```\n\nThis was put together pretty quickly for use on [my website](http://pupius.co.uk).  Patches and improvements welcome!\n\nAuthor\n------\n\n[Dan Pupius](https://github.com/dpup) ([personal website](http://pupius.co.uk)).\n\nLicense\n-------\n\nCopyright 2010 [Daniel Pupius](http://pupius.co.uk/).\n[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpup%2Fphp-closure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdpup%2Fphp-closure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpup%2Fphp-closure/lists"}