{"id":21625084,"url":"https://github.com/lireincore/lireincoreimgcachebundle","last_synced_at":"2026-05-19T11:09:05.639Z","repository":{"id":62517638,"uuid":"143901775","full_name":"lireincore/LireinCoreImgCacheBundle","owner":"lireincore","description":"The imgcache integration for Symfony framework","archived":false,"fork":false,"pushed_at":"2019-11-10T13:58:04.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-24T22:33:01.535Z","etag":null,"topics":["bundle","cache","effect","image","php","postprocessor","preset","resize","symfony","thumb","thumbnail"],"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/lireincore.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.MD","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-07T16:45:23.000Z","updated_at":"2019-11-10T13:58:06.000Z","dependencies_parsed_at":"2022-11-02T10:31:13.066Z","dependency_job_id":null,"html_url":"https://github.com/lireincore/LireinCoreImgCacheBundle","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lireincore%2FLireinCoreImgCacheBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lireincore%2FLireinCoreImgCacheBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lireincore%2FLireinCoreImgCacheBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lireincore%2FLireinCoreImgCacheBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lireincore","download_url":"https://codeload.github.com/lireincore/LireinCoreImgCacheBundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244297780,"owners_count":20430344,"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":["bundle","cache","effect","image","php","postprocessor","preset","resize","symfony","thumb","thumbnail"],"created_at":"2024-11-25T01:07:51.535Z","updated_at":"2026-05-19T11:09:00.618Z","avatar_url":"https://github.com/lireincore.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image effect, thumb and cache bundle for Symfony\n\n[![Build Status](https://secure.travis-ci.org/lireincore/LireinCoreImgCacheBundle.png?branch=master)](http://travis-ci.org/lireincore/LireinCoreImgCacheBundle)\n[![Latest Stable Version](https://poser.pugx.org/lireincore/imgcache-bundle/v/stable)](https://packagist.org/packages/lireincore/imgcache-bundle)\n[![Total Downloads](https://poser.pugx.org/lireincore/imgcache-bundle/downloads)](https://packagist.org/packages/lireincore/imgcache-bundle)\n[![License](https://poser.pugx.org/lireincore/imgcache-bundle/license)](https://packagist.org/packages/lireincore/imgcache-bundle)\n\n## About\n\nThe [lireincore/imgcache](https://github.com/lireincore/imgcache) integration for Symfony framework.\n\n## Install\n\nAdd the `\"lireincore/imgcache-bundle\": \"^0.4\"` package to your `require` section in the `composer.json` file\n\nor\n\n``` bash\n$ php composer.phar require lireincore/imgcache-bundle\n```\n\n## Usage\n\nTo use this bundle, you need to create the `lireincore_imgcache.yaml` file in your `config/packages` folder and paste this boilerplate:\n\n```yaml\n# config/packages/lireincore_imgcache.yaml\n\nlireincore_imgcache:\n    srcdir: '%kernel.project_dir%/files'\n    destdir: '%kernel.project_dir%/public/thumbs'\n    webdir: '%kernel.project_dir%/public'\n    presets:\n        origin:\n            effects:\n                - { type: 'resize', params: { width: '50%', height: 100 } }\n                - 'grayscale'\n```\n\nAdd listener class and configure for event handling when thumb created\n(required `symfony/event-dispatcher: ^4.3` or another psr-14 compatible dispatcher):\n\n```yaml\n# config/services.yaml\n\nservices:\n    Psr\\EventDispatcher\\EventDispatcherInterface: '@event_dispatcher'\n    App\\Event\\ThumbCreatedListener:\n        tags:\n            - { name: kernel.event_listener, event: LireinCore\\ImgCache\\Event\\ThumbCreatedEvent, method: onThumbCreated }\n```\n\nSee `lireincore/imgcache` [README.md](https://github.com/lireincore/imgcache/blob/master/README.md) for more information about the available effects and other config options.\n\nUse in your code:\n\n```php\n$imgcache = $this-\u003econtainer-\u003eget('lireincore_imgcache.service.imgcache');\n// get thumb url for image '{srcdir}/blog/image.jpg' (preset 'origin')\n$url = $imgcache-\u003eurl('blog/image.jpg', 'origin');\n```\n\nSee `lireincore/imgcache` [README.md](https://github.com/lireincore/imgcache/blob/master/README.md) for more information about the available functions.\n\n## License\n\nThis project is licensed under the MIT License - see the [License File](LICENSE) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flireincore%2Flireincoreimgcachebundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flireincore%2Flireincoreimgcachebundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flireincore%2Flireincoreimgcachebundle/lists"}