{"id":13486863,"url":"https://github.com/beeyev/thumbor-php","last_synced_at":"2025-12-28T20:42:49.256Z","repository":{"id":40512462,"uuid":"507071001","full_name":"beeyev/thumbor-php","owner":"beeyev","description":"PHP implementation of URL generator for Thumbor","archived":false,"fork":false,"pushed_at":"2024-10-05T18:34:32.000Z","size":77,"stargazers_count":27,"open_issues_count":1,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-30T21:38:02.475Z","etag":null,"topics":["laravel","laravel-package","thumbor"],"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/beeyev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2022-06-24T16:09:29.000Z","updated_at":"2024-09-09T14:54:38.000Z","dependencies_parsed_at":"2024-10-30T21:32:43.292Z","dependency_job_id":null,"html_url":"https://github.com/beeyev/thumbor-php","commit_stats":{"total_commits":6,"total_committers":3,"mean_commits":2.0,"dds":"0.33333333333333337","last_synced_commit":"37e7ef32107647f14b8d9b544392626cffd323ce"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beeyev%2Fthumbor-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beeyev%2Fthumbor-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beeyev%2Fthumbor-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beeyev%2Fthumbor-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beeyev","download_url":"https://codeload.github.com/beeyev/thumbor-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245927199,"owners_count":20695187,"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":["laravel","laravel-package","thumbor"],"created_at":"2024-07-31T18:00:52.243Z","updated_at":"2025-12-28T20:42:49.215Z","avatar_url":"https://github.com/beeyev.png","language":"PHP","funding_links":[],"categories":["PHP Integration \u0026 URL Generation"],"sub_categories":[],"readme":"# Thumbor PHP\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/beeyev/thumbor-php)](https://packagist.org/packages/beeyev/thumbor-php)\n[![Supported PHP Versions](https://img.shields.io/packagist/dependency-v/beeyev/thumbor-php/php.svg)](https://packagist.org/packages/beeyev/thumbor-php)\n[![Packagist Downloads](https://img.shields.io/packagist/dt/beeyev/thumbor-php)](https://packagist.org/packages/beeyev/thumbor-php)\n\n![beeyev_thumbor-php](https://github.com/beeyev/thumbor-php/assets/326840/5c4139d3-097a-4e13-b4c0-f9b1dfc53ae4)\n\nPHP implementation of URL generator for [Thumbor](http://www.thumbor.org/)  \n\n\u003e This package has laravel support, and brings its conveniences like Facade and Service Provider.  \n\u003e At the same time, it was made to be filly functional as framework-agnostic.\n\nSupported PHP versions: `7.0 - 8.2`  \n\n\n## Installation\n\nRequire this package with composer using the following command:\n\n```bash\ncomposer require beeyev/thumbor-php\n```\n\n#### Laravel  \nThis package will be automatically registered using Laravel auto-discovery mechanism.  \nPublish the config file of this package with this command. It will generate config file `config/thumbor.php`, look at this file to set the required parameters.\n```bash\nphp artisan vendor:publish --provider=\"Beeyev\\Thumbor\\Adapters\\Laravel\\ThumborServiceProvider\" --tag=config\n```\n\n## Usage examples\n#### Laravel using dependency injection\n```php\nuse Beeyev\\Thumbor\\Thumbor;\n\npublic function someMethod(Thumbor $thumbor)\n{\n    $result = $thumbor-\u003eresizeOrFit(200,500)-\u003eget('http://seriouscat.com/serious_cat.jpg');\n}\n```\n\n#### Laravel using facade\n```php\nuse Beeyev\\Thumbor\\Manipulations\\Fit;\nuse Beeyev\\Thumbor\\Manipulations\\Trim;\n\npublic function someMethod()\n{\n    $result = \\Thumbor::addFilter('blur', 3)\n        -\u003eresizeOrFit(500, 300, Fit::FIT_IN)\n        -\u003etrim(Trim::BOTTOM_RIGHT)\n        -\u003eget('http://seriouscat.com/serious_cat.jpg');\n}\n```\n\n#### Some more framework-agnostic examples\n\n```php\nuse Beeyev\\Thumbor\\Thumbor;\nuse Beeyev\\Thumbor\\Manipulations\\Resize;\nuse Beeyev\\Thumbor\\Manipulations\\Filter;\n\npublic function someMethod()\n{\n    $thumbor = new Thumbor('https://thumbor.findtheinvisiblecow.com/', 'secretKey555');\n    $thumbor-\u003eaddFilter(Filter::STRIP_EXIF);\n    $thumbor-\u003eaddFilter(Filter::BLUR, 1);\n    $thumbor-\u003eresizeOrFit(500, Resize::ORIG);\n    $thumbor-\u003esmartCrop();\n    $thumbor-\u003eimageUrl('http://seriouscat.com/serious_cat.jpg');\n\n    return $thumbor-\u003eget();\n}\n```\n\n## Issues\nBug reports and feature requests can be submitted on the [Github Issue Tracker](https://github.com/beeyev/thumbor-php/issues).\n\n## License\nThe MIT License (MIT). Please see [License File](https://github.com/beeyev/thumbor-php/raw/master/LICENSE.md) for more information.\n\n---\nIf you love this project, please consider giving me a ⭐\n\n![](https://visitor-badge.laobi.icu/badge?page_id=beeyev.thumbor-php)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeeyev%2Fthumbor-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeeyev%2Fthumbor-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeeyev%2Fthumbor-php/lists"}