{"id":20555519,"url":"https://github.com/golchha21/resmushit","last_synced_at":"2025-04-14T12:44:33.483Z","repository":{"id":62511663,"uuid":"256549225","full_name":"golchha21/ReSmushIt","owner":"golchha21","description":"A Laravel package for the popular image optimization web service reSmush.it","archived":false,"fork":false,"pushed_at":"2025-04-13T11:14:12.000Z","size":30,"stargazers_count":6,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T12:16:56.792Z","etag":null,"topics":["image-compression","image-compressor","image-optimisation","image-optimization","image-optimizer","laravel","laravel-package","resmushit"],"latest_commit_sha":null,"homepage":null,"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/golchha21.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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":"2020-04-17T16:04:33.000Z","updated_at":"2025-04-13T11:12:09.000Z","dependencies_parsed_at":"2024-03-02T08:29:53.991Z","dependency_job_id":"c9489030-75c7-4b9f-8bb0-fc6c88a92f63","html_url":"https://github.com/golchha21/ReSmushIt","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/golchha21%2FReSmushIt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/golchha21%2FReSmushIt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/golchha21%2FReSmushIt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/golchha21%2FReSmushIt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/golchha21","download_url":"https://codeload.github.com/golchha21/ReSmushIt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248883385,"owners_count":21177202,"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-compression","image-compressor","image-optimisation","image-optimization","image-optimizer","laravel","laravel-package","resmushit"],"created_at":"2024-11-16T03:18:53.073Z","updated_at":"2025-04-14T12:44:33.451Z","avatar_url":"https://github.com/golchha21.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"reSmushit for Laravel\n==========\n\n[![Latest Stable Version](http://poser.pugx.org/golchha21/resmushit/v)](https://packagist.org/packages/golchha21/resmushit)\n[![Total Downloads](http://poser.pugx.org/golchha21/resmushit/downloads)](https://packagist.org/packages/golchha21/resmushit)\n[![License](http://poser.pugx.org/golchha21/resmushit/license)](https://packagist.org/packages/golchha21/resmushit)\n\nA Laravel package for the popular image optimization web service [reSmush.it](http://resmush.it/)\n\n## Installation\n\nInstall via composer\n\n```bash\ncomposer require golchha21/resmushit\n```\n\n### Publish configuration file\n\n```bash\nphp artisan vendor:publish --provider Golchha21\\ReSmushIt\\Providers\\ServiceProvider --tag=config\n```\n\n## Example configuration file\n\n```php\n// config/ReSmushIt.php\n\nreturn [\n\n    'original' =\u003e true|false,\n    \n    'quality' =\u003e 92,\n\n    'mime' =\u003e [\n        'image/png',\n        'image/jpeg',\n        'image/gif',\n        'image/bmp',\n        'image/tiff',\n    ],\n\n    'useragent' =\u003e 'SOME USER AGENT',\n\n    'exif' =\u003e true|false,\n];\n```\n\n## Usage\n\n###### Option 1\n``` php\n    $file = public_path('images/news1.jpg');\n    $files = [\n        public_path('images/news1.jpg'),\n        public_path('images/news2.jpg'),\n        public_path('images/news3.jpg'),\n        public_path('images/news4.jpg'),\n    ];\n\n    $resmushit = new ReSmushIt();\n    $result = $resmushit-\u003epath($file);\n    $results = $resmushit-\u003epaths($files);\n```\n\n###### Option 2\n``` php\n    $file = public_path('images/news1.jpg');\n    $files = [\n        public_path('images/news1.jpg'),\n        public_path('images/news2.jpg'),\n        public_path('images/news3.jpg'),\n        public_path('images/news4.jpg'),\n    ];\n\n    Optimize::path($file);\n    Optimize::paths($files);\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Security\n\nIf you discover any security related issues, please email vardhans@ulhas.net instead of using the issue tracker.\n\n## Author\n\n- [Ulhas Vardhan Golchha](https://github.com/golchha21) - *Initial work*\n\nSee also the list of [contributors](https://github.com/golchha21/reSmushit/graphs/contributors) who participated in this project.\n\n## License\n\nreSmushit for Laravel is open-sourced software licensed under the [MIT license](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgolchha21%2Fresmushit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgolchha21%2Fresmushit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgolchha21%2Fresmushit/lists"}