{"id":16897738,"url":"https://github.com/endroid/image-placeholder","last_synced_at":"2025-04-11T13:51:58.830Z","repository":{"id":36626713,"uuid":"40932945","full_name":"endroid/image-placeholder","owner":"endroid","description":"Easy integration of image placeholders in your project","archived":false,"fork":false,"pushed_at":"2024-10-20T14:11:19.000Z","size":170,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T10:05:23.631Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://endroid.nl/","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/endroid.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":"endroid"}},"created_at":"2015-08-17T22:14:33.000Z","updated_at":"2024-12-20T05:16:14.000Z","dependencies_parsed_at":"2023-11-29T19:53:46.878Z","dependency_job_id":"080e7516-5175-4a8d-817d-f08618db1b47","html_url":"https://github.com/endroid/image-placeholder","commit_stats":{"total_commits":69,"total_committers":2,"mean_commits":34.5,"dds":0.05797101449275366,"last_synced_commit":"add54dbdd6da3263c7139b6f7efcad1f3d7f82e8"},"previous_names":["endroid/image-placeholder-bundle"],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endroid%2Fimage-placeholder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endroid%2Fimage-placeholder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endroid%2Fimage-placeholder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endroid%2Fimage-placeholder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/endroid","download_url":"https://codeload.github.com/endroid/image-placeholder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248411971,"owners_count":21099036,"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":[],"created_at":"2024-10-13T17:39:35.484Z","updated_at":"2025-04-11T13:51:58.808Z","avatar_url":"https://github.com/endroid.png","language":"PHP","funding_links":["https://github.com/sponsors/endroid"],"categories":[],"sub_categories":[],"readme":"# Image Placeholder\r\n\r\n*By [endroid](https://endroid.nl/)*\r\n\r\n[![Latest Stable Version](http://img.shields.io/packagist/v/endroid/image-placeholder.svg)](https://packagist.org/packages/endroid/image-placeholder)\r\n[![Build Status](https://github.com/endroid/image-placeholder/workflows/CI/badge.svg)](https://github.com/endroid/image-placeholder/actions)\r\n[![Total Downloads](http://img.shields.io/packagist/dt/endroid/image-placeholder.svg)](https://packagist.org/packages/endroid/image-placeholder)\r\n[![Monthly Downloads](http://img.shields.io/packagist/dm/endroid/image-placeholder.svg)](https://packagist.org/packages/endroid/image-placeholder)\r\n[![License](http://img.shields.io/packagist/l/endroid/image-placeholder.svg)](https://packagist.org/packages/endroid/image-placeholder)\r\n\r\nProvides a Twig filter that replaces empty or invalid URLs with a placeholder image.\r\n\r\n## Installation\r\n\r\nUse [Composer](https://getcomposer.org/) to install the library.\r\n\r\n``` bash\r\n$ composer require endroid/image-placeholder\r\n```\r\n\r\n## Configuration\r\n\r\nThe default placeholder generation parameters can be overridden via the\r\nconstructor arguments or service definition. All parameters are optional.\r\n\r\n## Usage\r\n\r\nPlaceholders are placed via a Twig filter that shows the placeholder image in\r\ncase the service is activated and the given URL is empty or invalid.\r\n\r\n``` twig\r\n\u003cimg src=\"{{ image_url|image_placeholder(200, 300) }}\" /\u003e\r\n\u003cimg src=\"{{ image_url|image_placeholder(200, 300, { check_image_exists: false }) }}\" /\u003e\r\n```\r\n\r\n## Versioning\r\n\r\nVersion numbers follow the MAJOR.MINOR.PATCH scheme. Backwards compatibility\r\nbreaking changes will be kept to a minimum but be aware that these can occur.\r\nLock your dependencies for production and test your code when upgrading.\r\n\r\n## License\r\n\r\nThis library is under the MIT license. For the full copyright and license\r\ninformation please view the LICENSE file that was distributed with this source code.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendroid%2Fimage-placeholder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fendroid%2Fimage-placeholder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendroid%2Fimage-placeholder/lists"}