{"id":20128948,"url":"https://github.com/intervention/image-symfony","last_synced_at":"2025-04-09T15:51:27.035Z","repository":{"id":231541692,"uuid":"782040231","full_name":"Intervention/image-symfony","owner":"Intervention","description":"Symfony Integration for Intervention Image","archived":false,"fork":false,"pushed_at":"2025-02-09T14:18:48.000Z","size":25,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T18:06:11.713Z","etag":null,"topics":["gd","image","imagick","intervention","php","symfony"],"latest_commit_sha":null,"homepage":"https://image.intervention.io","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/Intervention.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":["Intervention"],"ko_fi":"interventionphp","custom":"https://paypal.me/interventionio"}},"created_at":"2024-04-04T14:21:03.000Z","updated_at":"2025-02-23T09:13:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"7b9e22e8-652c-4568-b5d9-a36416ca94f3","html_url":"https://github.com/Intervention/image-symfony","commit_stats":null,"previous_names":["intervention/image-symfony"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intervention%2Fimage-symfony","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intervention%2Fimage-symfony/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intervention%2Fimage-symfony/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intervention%2Fimage-symfony/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Intervention","download_url":"https://codeload.github.com/Intervention/image-symfony/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248063984,"owners_count":21041854,"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":["gd","image","imagick","intervention","php","symfony"],"created_at":"2024-11-13T20:30:47.543Z","updated_at":"2025-04-09T15:51:27.028Z","avatar_url":"https://github.com/Intervention.png","language":"PHP","funding_links":["https://github.com/sponsors/Intervention","https://ko-fi.com/interventionphp","https://paypal.me/interventionio"],"categories":[],"sub_categories":[],"readme":"# Intervention Image Symfony\n## Symfony Integration for Intervention Image\n\n[![Latest Version](https://img.shields.io/packagist/v/intervention/image-symfony.svg)](https://packagist.org/packages/intervention/image-symfony)\n[![Monthly Downloads](https://img.shields.io/packagist/dm/intervention/image-symfony.svg)](https://packagist.org/packages/intervention/image-symfony/stats)\n[![Support me on Ko-fi](https://raw.githubusercontent.com/Intervention/image-symfony/main/.github/images/support.svg)](https://ko-fi.com/interventionphp)\n\nThis package provides an integration to setup [Intervention\nImage](https://image.intervention.io) easily to your [Symfony](https://symfony.com) framework\napplication. Although the use of this integration library is not absolutely\nnecessary, it offers a convenient way of central configuration in the Symfony\nframework.\n\n## Requirements\n\n- Symfony \u003e= 6.4\n\n## Installation\n\nIn your existing Symfony application you can install this package using [Composer](https://getcomposer.org).\n\n```bash\ncomposer require intervention/image-symfony\n```\n\nAfter successful installation, you can activate the bundle in the file\n`config/bundes.php` of your application by inserting the following line into\nthe array.\n\n```php\nreturn [\n    // ...\n    Intervention\\Image\\Symfony\\InterventionImageBundle::class =\u003e ['all' =\u003e true],\n];\n```\n\n## Configuration\n\nBy default, the bundle is configured to use the GD library with Intervention\nImage. However, the package also offers other drivers. This and other options of the \nlibrary can be easily configured by creating a file `config/packages/intervention_image.yaml` and\nsetting the driver class as follows. \n\n```yaml\nintervention_image:\n  driver: Intervention\\Image\\Drivers\\Imagick\\Driver\n  options:\n    autoOrientation: true\n    decodeAnimation: true\n    blendingColor: 'ffffff'\n    strip: false\n```\n\nYou can choose between the two supplied drivers `Intervention\\Image\\Drivers\\Gd\\Driver` and\n`Intervention\\Image\\Drivers\\Imagick\\Driver` for example.\n\nYou can read more about the different options for\n[auto orientation](https://image.intervention.io/v3/modifying/effects#image-orientation-according-to-exif-data), \n[decoding animations](https://image.intervention.io/v3/modifying/animations) and \n[blending color](https://image.intervention.io/v3/basics/colors#transparency).\n\n## Getting Started\n\nThe integration is now complete and it is possible to access the [ImageManager](https://image.intervention.io/v3/basics/instantiation)\nvia dependency injection.\n\n```php\nnamespace App\\Controller;\n\nuse Intervention\\Image\\ImageManager;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\Routing\\Annotation\\Route;\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\AbstractController;\n\nclass ExampleController extends AbstractController\n{\n    #[Route('/')]\n    public function example(ImageManager $manager): Response\n    {\n        $image = $manager-\u003eread('images/example.jpg');\n    }\n}\n```\n\nRead the [official documentation of Intervention Image](https://image.intervention.io) for more information.\n\n## Authors\n\nThis library is developed and maintained by [Oliver Vogel](https://intervention.io)\n\nThanks to the community of [contributors](https://github.com/Intervention/image-symfony/graphs/contributors) who have helped to improve this project.\n\n## License\n\nIntervention Image Symfony is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintervention%2Fimage-symfony","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fintervention%2Fimage-symfony","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintervention%2Fimage-symfony/lists"}