{"id":16590454,"url":"https://github.com/kocal/open-graph-image-generator","last_synced_at":"2025-04-28T11:43:26.216Z","repository":{"id":207254804,"uuid":"718805864","full_name":"Kocal/open-graph-image-generator","owner":"Kocal","description":"Symfony project to dynamically generate a OpenGraph image given an URL","archived":false,"fork":false,"pushed_at":"2024-04-10T20:44:06.000Z","size":1840,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-30T09:14:45.511Z","etag":null,"topics":["image","opengraph","php","symfony"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kocal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null},"funding":{"github":"Kocal","custom":"paypal.me/HAlliaume"}},"created_at":"2023-11-14T20:50:13.000Z","updated_at":"2025-01-08T12:27:13.000Z","dependencies_parsed_at":"2024-03-10T11:42:49.062Z","dependency_job_id":"294c8df4-b297-4320-bd19-65858a2e62a5","html_url":"https://github.com/Kocal/open-graph-image-generator","commit_stats":null,"previous_names":["kocal/open-graph-image-generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kocal%2Fopen-graph-image-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kocal%2Fopen-graph-image-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kocal%2Fopen-graph-image-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kocal%2Fopen-graph-image-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kocal","download_url":"https://codeload.github.com/Kocal/open-graph-image-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251307480,"owners_count":21568468,"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":["image","opengraph","php","symfony"],"created_at":"2024-10-11T23:13:04.641Z","updated_at":"2025-04-28T11:43:26.161Z","avatar_url":"https://github.com/Kocal.png","language":"PHP","funding_links":["https://github.com/sponsors/Kocal","paypal.me/HAlliaume"],"categories":[],"sub_categories":[],"readme":"# Open Graph Image Generator\n\nThis project is a simple Open Graph image generator, it allows you to generate Open Graph images for a given URL.\n\n## Requirements\n\n- [Symfony CLI](https://symfony.com/download)\n- Docker and Docker Compose\n- PHP 8.3\n\n## Installation\n\n1. Clone the repository and configure the environment:\n```shell\ngit clone https://github.com/Kocal/open-graph-image-generator.git\ncd open-graph-image-generator\nsymfony local:server:ca:install\nsymfony local:proxy:domain:attach og-image-generator\n```\n\n2. Edit the `.env.local` and configure `APP_OPENGRAPH_IMAGE_GENERATION_ALLOWED_DOMAINS` to allow your domain(s) to generate Open Graph images.\n\n3. Install the dependencies with Composer:\n```shell\n$ symfony composer install\n```\n\n## Usage\n\nRun the project:\n\n```shell\n$ docker compose up -d\n$ symfony serve\n```\n\n## Programmatic usage\n\nYou can use this project programmatically by sending a `GET` request to the `/generate` endpoint with the following parameters:\n- `format` (required): The image format, can be `html` or `image`\n- `url` (required): The URL to generate the Open Graph image\n\nExample: https://127.0.0.1:8000/generate?url=https://hugo.alliau.me/posts/2023-10-21-blackfire-and-symfony-cli.html\u0026format=image","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkocal%2Fopen-graph-image-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkocal%2Fopen-graph-image-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkocal%2Fopen-graph-image-generator/lists"}