{"id":13518823,"url":"https://github.com/davgothic/smushit","last_synced_at":"2025-04-30T22:24:25.556Z","repository":{"id":56963220,"uuid":"1256438","full_name":"davgothic/smushit","owner":"davgothic","description":"SmushIt is a PHP client for the popular Yahoo! image compression web service Smush.it","archived":false,"fork":false,"pushed_at":"2018-08-05T16:19:34.000Z","size":31,"stargazers_count":36,"open_issues_count":0,"forks_count":14,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-08T13:47:47.313Z","etag":null,"topics":["image-optimization","php","smushit"],"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/davgothic.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-01-15T00:08:23.000Z","updated_at":"2024-07-10T01:08:56.000Z","dependencies_parsed_at":"2022-08-21T05:40:22.585Z","dependency_job_id":null,"html_url":"https://github.com/davgothic/smushit","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davgothic%2Fsmushit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davgothic%2Fsmushit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davgothic%2Fsmushit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davgothic%2Fsmushit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davgothic","download_url":"https://codeload.github.com/davgothic/smushit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251790510,"owners_count":21644228,"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":["image-optimization","php","smushit"],"created_at":"2024-08-01T05:01:49.531Z","updated_at":"2025-04-30T22:24:25.526Z","avatar_url":"https://github.com/davgothic.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"SmushIt\n==========\n\n[![Version](https://img.shields.io/packagist/v/davgothic/smushit.svg)](https://packagist.org/packages/davgothic/smushit)\n[![Build Status](https://img.shields.io/travis/davgothic/smushit.svg)](https://travis-ci.org/davgothic/smushit)\n[![Downloads](https://img.shields.io/packagist/dt/davgothic/smushit.svg)](https://packagist.org/packages/davgothic/smushit)\n[![License](https://img.shields.io/github/license/davgothic/smushit.svg)](https://github.com/davgothic/smushit/blob/master/LICENSE.md)\n\nSmushIt is a PHP client for the popular Yahoo! image compression web service [Smush.it](http://www.smushit.com/ysmush.it/)\n\nBasic Usage\n-----------\n\n```php\nuse DavGothic\\SmushIt\\Client;\nuse DavGothic\\SmushIt\\SmushIt;\n\ninclude __DIR__ . '/vendor/autoload.php';\n\n$client = new Client\\Curl();\n$smushit = new SmushIt($client);\n\n// Compress a local/remote image and return the result object.\n$result = $smushit-\u003ecompress('some/path/to/an/image.png');\nprint_r($result);\n\n// stdClass Object\n// (\n//     [src] =\u003e http://static0.resmush.it/output/1262dc777d8b239cfdf5f528a4032f02/source.png\n//     [dest] =\u003e http://static1.resmush.it/output/a9ba82e7ba18e9482e085fadb126edad/output.png\n//     [src_size] =\u003e 455200\n//     [dest_size] =\u003e 158075\n//     [percent] =\u003e 65\n//     [format] =\u003e png\n//     [expires] =\u003e Sun, 19 Mar 2017 18:00:33 +0100\n//     [generator] =\u003e reSmush.it rev.1.4.22.20170224\n// )\n```\n\nInstallation\n------------\n\nTo install the most recent version via [composer](https://getcomposer.org/), run the following command:\n\n```sh\ncomposer require davgothic/smushit\n```\n\nRequirements\n------------\n\n - PHP 5.5.0+\n - PHP JSON extension\n - PHP cURL extension (This requirement can be ignored if using any client other than the provided cURL client)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavgothic%2Fsmushit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavgothic%2Fsmushit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavgothic%2Fsmushit/lists"}