{"id":25257499,"url":"https://github.com/czproject/phpshrink","last_synced_at":"2025-07-19T11:41:13.238Z","repository":{"id":9652570,"uuid":"11589066","full_name":"czproject/phpshrink","owner":"czproject","description":"Library for shrinking of PHP code.","archived":false,"fork":false,"pushed_at":"2017-12-27T14:14:25.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T06:53:54.129Z","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/czproject.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}},"created_at":"2013-07-22T18:39:19.000Z","updated_at":"2017-12-27T14:13:55.000Z","dependencies_parsed_at":"2022-07-21T15:49:16.459Z","dependency_job_id":null,"html_url":"https://github.com/czproject/phpshrink","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czproject%2Fphpshrink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czproject%2Fphpshrink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czproject%2Fphpshrink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czproject%2Fphpshrink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/czproject","download_url":"https://codeload.github.com/czproject/phpshrink/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247419813,"owners_count":20936012,"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":"2025-02-12T06:40:09.948Z","updated_at":"2025-04-06T00:41:49.479Z","avatar_url":"https://github.com/czproject.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"PHP Shrink\n==========\n\nLibrary for shrinking of PHP code.\n\n\nInstallation\n------------\n\n[Download a latest package](https://github.com/czproject/phpshrink/releases) or use [Composer](http://getcomposer.org/):\n\n```\ncomposer require czproject/phpshrink\n```\n\nPhpShrink requires PHP 5.3.0 or later.\n\n\nUsage\n-----\n\n``` php\n\u003c?php\n\t$shrinker = new Cz\\PhpShrink;\n\n\t// add files\n\t$shrinker-\u003eaddFile('myfile.php');\n\t$shrinker-\u003eaddFile('libs.php');\n\n\t// add array of files\n\t$shrinker-\u003eaddFiles(array(\n\t\t'functions.php',\n\t\t'exceptions.php',\n\t));\n\n\t// or add PHP code\n\t$shrinker-\u003eaddContent('\u003c?php echo \"hello!\";');\n\n\t// get shrinked code\n\t$code = $shrinker-\u003egetOutput();\n```\n\n------------------------------\n\nBased on [class](https://github.com/nette/build-tools/blob/master/tasks/minify.php#L63) by [David Grudl](https://davidgrudl.com/).\n\nDavid Grudl, https://davidgrudl.com/\n\u003cbr\u003eJan Pecha, https://www.janpecha.cz/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczproject%2Fphpshrink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fczproject%2Fphpshrink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczproject%2Fphpshrink/lists"}