{"id":13669931,"url":"https://github.com/websemantics/placeholder-plugin","last_synced_at":"2025-09-13T05:40:34.157Z","repository":{"id":150921717,"uuid":"48661387","full_name":"websemantics/placeholder-plugin","owner":"websemantics","description":"This plugin provides a quick and simple way for generating crystal-clear image placeholders using SVG","archived":false,"fork":false,"pushed_at":"2015-12-28T05:14:50.000Z","size":528,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-13T11:03:24.032Z","etag":null,"topics":[],"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/websemantics.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}},"created_at":"2015-12-27T21:36:31.000Z","updated_at":"2021-01-13T19:48:24.000Z","dependencies_parsed_at":"2023-04-09T04:33:12.947Z","dependency_job_id":null,"html_url":"https://github.com/websemantics/placeholder-plugin","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/websemantics/placeholder-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websemantics%2Fplaceholder-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websemantics%2Fplaceholder-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websemantics%2Fplaceholder-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websemantics%2Fplaceholder-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/websemantics","download_url":"https://codeload.github.com/websemantics/placeholder-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websemantics%2Fplaceholder-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274920967,"owners_count":25374163,"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","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-08-02T09:00:25.725Z","updated_at":"2025-09-13T05:40:34.120Z","avatar_url":"https://github.com/websemantics.png","language":"PHP","funding_links":[],"categories":["Plugins"],"sub_categories":[],"readme":"# Placeholder Plugin\n\nThis plugin provides a quick and simple way for generating crystal-clear image placeholders using SVG.\n\nUse `{{ placeholder()}}` to generate an image placeholder (100 x 100) by default.\n\n## Avilable Parameters:\n\n * width  : image width\n * height : image height\n * color  : text color\n * font  : text font\n * background : image background color\n * fontSize : text font size\n * text : overrider the default text (width * height)\n\n### Example 1: \n\n```\n\u003cdiv\u003e\n    \u003cspan\u003e{{ placeholder({width : 70, height : 70})| raw}}\u003c/span\u003e\n    \u003cspan\u003e{{ placeholder({width : 70, height : 70})| raw}}\u003c/span\u003e\n    \u003cspan\u003e{{ placeholder({width : 70, height : 70})| raw}}\u003c/span\u003e\n    \u003cspan\u003e{{ placeholder({width : 70, height : 70})| raw}}\u003c/span\u003e\n    \u003cspan\u003e{{ placeholder({width : 70, height : 70})| raw}}\u003c/span\u003e\n    \u003cspan\u003e{{ placeholder({width : 70, height : 70})| raw}}\u003c/span\u003e\n    \u003cspan\u003e{{ placeholder({width : 70, height : 70})| raw}}\u003c/span\u003e\n\u003c/div\u003e\n\n\u003cdiv\u003e\n    \u003cspan\u003e{{ placeholder({width : 200, height : 200, fontSize: 14})| raw}}\u003c/span\u003e\n    \u003cspan\u003e{{ placeholder({width : 332, height : 200,fontSize: 19})| raw}}\u003c/span\u003e\n\u003c/div\u003e\n\n\u003cdiv\u003e\n    \u003cspan\u003e{{ placeholder({width : 542, height : 100, fontSize: 23})| raw}}\u003c/span\u003e\n\u003c/div\u003e\n```\n\n### Result \n\n![Example 1](https://raw.githubusercontent.com/websemantics/placeholder-plugin/master/resources/img/example-1.png)\n\n### Example 2:\n\n```\n\u003cdiv\u003e\n    \u003cspan\u003e{{ placeholder({color:'#ffffff',text: 'Burnt Sienna',background: \"#ff4f54\"})| raw}}\u003c/span\u003e\n    \u003cspan\u003e{{ placeholder({color:'#ffffff',text: 'Amulet',background: \"#73a375\"})| raw}}\u003c/span\u003e\n    \u003cspan\u003e{{ placeholder({color:'#ffffff',text: 'Leather',background: \"#97715a\"})| raw}}\u003c/span\u003e\n    \u003cspan\u003e{{ placeholder({color:'#ffffff',text: 'Polo Blue',background: \"#8494cc\"})| raw}}\u003c/span\u003e\n    \u003cspan\u003e{{ placeholder({color:'#ffffff',text: 'Porsche',background: \"#e4a365\"})| raw}}\u003c/span\u003e\n    \u003cspan\u003e{{ placeholder({color:'#ffffff',text: 'Ronchi',background: \"#eec95b\"})| raw}}\u003c/span\u003e\n    \u003cspan\u003e{{ placeholder({color:'#ffffff',text: 'Kimberly',background: \"#7078a7\"})| raw}}\u003c/span\u003e\n\u003c/div\u003e\n```\n\n### Result \n\n![Example 2](https://raw.githubusercontent.com/websemantics/placeholder-plugin/master/resources/img/example-2.png)\n\n# Fluent API\n\nWhen using this plugin you can either send all parameters as described above or in `fluent` format, for example:\n\n```\n\u003cspan\u003e{{ placeholder({color:'#ffffff',text: 'Burnt Sienna',background: \"#ff4f54\"}) | raw}}\u003c/span\u003e\n```\n\nWill be written in fluent as,\n\n```\n\u003cspan\u003e{{ placeholder().color('#ffffff').text('Burnt Sienna').background(\"#ff4f54\") | raw}}\u003c/span\u003e\n```\n\nOr\n\n```\n\u003cspan\u003e{{ placeholder({color:'#ffffff'}).text('Burnt Sienna').background(\"#ff4f54\") | raw}}\u003c/span\u003e\n```\n\nIf the same parameter is being set using function parameters and the fluent api, the fluent value will supersede,\n\n```\n\u003cspan\u003e{{ placeholder({width:300}).width(500) | raw}}\u003c/span\u003e\n```\n\nThe placeholder of the above exampel will have width of 500px.\n\n# Change Log\nAll notable changes to this project will be documented in this section.\n\n### [0.1] - 2015-12-26\n#### Changed\n- Quick way to create image placeholders\n- Accepts width and height\n- Can set background and foreground colors\n- Set font size and text\n\n# License\nPlaceholder Plugin is open source under MIT License.  See LICENSE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebsemantics%2Fplaceholder-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebsemantics%2Fplaceholder-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebsemantics%2Fplaceholder-plugin/lists"}