{"id":13417517,"url":"https://github.com/lhapaipai/vite-bundle","last_synced_at":"2025-10-07T18:01:44.009Z","repository":{"id":37745666,"uuid":"356825230","full_name":"lhapaipai/vite-bundle","owner":"lhapaipai","description":"Integration with your Symfony app \u0026 Vite","archived":false,"fork":false,"pushed_at":"2025-02-23T21:06:02.000Z","size":305,"stargazers_count":252,"open_issues_count":0,"forks_count":25,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-04-13T15:08:47.583Z","etag":null,"topics":["bundle","php","symfony","symfony-bundle","vitejs"],"latest_commit_sha":null,"homepage":"https://symfony-vite.pentatrion.com","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/lhapaipai.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-11T09:31:36.000Z","updated_at":"2025-04-01T21:45:24.000Z","dependencies_parsed_at":"2023-12-26T09:08:38.440Z","dependency_job_id":"1d3de4b8-8462-4ff5-bbcf-589b8753225b","html_url":"https://github.com/lhapaipai/vite-bundle","commit_stats":{"total_commits":233,"total_committers":14,"mean_commits":"16.642857142857142","dds":"0.27896995708154504","last_synced_commit":"3b3f12546bab03d569b241ee95d4c1d6971bbf01"},"previous_names":[],"tags_count":82,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lhapaipai%2Fvite-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lhapaipai%2Fvite-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lhapaipai%2Fvite-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lhapaipai%2Fvite-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lhapaipai","download_url":"https://codeload.github.com/lhapaipai/vite-bundle/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248732488,"owners_count":21152852,"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","php","symfony","symfony-bundle","vitejs"],"created_at":"2024-07-30T22:00:38.985Z","updated_at":"2025-10-07T18:01:38.965Z","avatar_url":"https://github.com/lhapaipai.png","language":"PHP","funding_links":[],"categories":["Integrations with Backends","PHP"],"sub_categories":["Symfony"],"readme":"\u003cdiv\u003e\n  \u003cp align=\"center\"\u003e\n  \u003cimg width=\"100\" src=\"https://raw.githubusercontent.com/lhapaipai/vite-bundle/main/docs/symfony-vite.svg\" alt=\"Symfony logo\"\u003e\n  \u003c/p\u003e\n  \u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://img.shields.io/packagist/v/pentatrion/vite-bundle?style=flat-square\u0026logo=packagist\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/lhapaipai/symfony-vite-dev/vite-bundle-ci.yml?style=flat-square\u0026label=vite-bundle%20CI\u0026logo=github\"\u003e\n\n  \u003c/p\u003e\n\u003c/div\u003e\n\n\n\n# ViteBundle : Symfony integration with Vite\n\n\u003e [!IMPORTANT]\n\u003e This repository is a \"subtree split\": a read-only subset of that main repository [symfony-vite-dev](https://github.com/lhapaipai/symfony-vite-dev) which delivers to packagist only the necessary code.\n\n\u003e [!IMPORTANT]\n\u003e If you want to open issues, contribute, make PRs or consult examples you will have to go to the [symfony-vite-dev](https://github.com/lhapaipai/symfony-vite-dev) repository.\n\n\nThis bundle helps you render all the dynamic `script` and `link` tags needed.\nEssentially, it provides two twig functions to load the correct scripts into your templates.\n\n## Installation\n\nInstall the bundle with:\n\n```console\ncomposer require pentatrion/vite-bundle\n```\n\n```bash\nnpm install\n\n# start your vite dev server\nnpm run dev\n```\n\nAdd these twig functions in any template or base layout where you need to include a JavaScript entry:\n\n```twig\n{% block stylesheets %}\n    {{ vite_entry_link_tags('app') }}\n{% endblock %}\n\n{% block javascripts %}\n    {{ vite_entry_script_tags('app') }}\n\n    {# if you are using React, you have to replace with this #}\n    {{ vite_entry_script_tags('app', { dependency: 'react' }) }}\n{% endblock %}\n```\n\n[Read the Docs to Learn More](https://symfony-vite.pentatrion.com).\n\n## Ecosystem\n\n| Package                                                                 | Description               |\n| ----------------------------------------------------------------------- | :------------------------ |\n| [vite-plugin-symfony](https://github.com/lhapaipai/vite-plugin-symfony) | Vite plugin (read-only)   |\n| [symfony-vite-dev](https://github.com/lhapaipai/symfony-vite-dev)       | Package for contributors  |\n\n## License\n\n[MIT](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flhapaipai%2Fvite-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flhapaipai%2Fvite-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flhapaipai%2Fvite-bundle/lists"}