{"id":14987268,"url":"https://github.com/mihatorikei/codeigniter-vitejs","last_synced_at":"2025-08-20T12:31:26.955Z","repository":{"id":44325393,"uuid":"512037774","full_name":"mihatorikei/codeigniter-vitejs","owner":"mihatorikei","description":"ViteJS Integration For Codeigniter4 🔥⚡","archived":false,"fork":false,"pushed_at":"2023-07-09T07:03:32.000Z","size":127,"stargazers_count":75,"open_issues_count":3,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-13T06:56:45.720Z","etag":null,"topics":["bundler","codeigniter","codeigniter4","react","reactjs","svelte","sveltejs","vite","vitejs","vue","vuejs"],"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/mihatorikei.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null}},"created_at":"2022-07-08T22:08:39.000Z","updated_at":"2024-04-12T22:25:52.000Z","dependencies_parsed_at":"2023-01-23T02:16:13.904Z","dependency_job_id":null,"html_url":"https://github.com/mihatorikei/codeigniter-vitejs","commit_stats":{"total_commits":83,"total_committers":4,"mean_commits":20.75,"dds":0.3855421686746988,"last_synced_commit":"221343365925867a70028a63431d9276d04ee3df"},"previous_names":["mihatorikei/codeigniter-vitejs","firtadokei/codeigniter-vitejs"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihatorikei%2Fcodeigniter-vitejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihatorikei%2Fcodeigniter-vitejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihatorikei%2Fcodeigniter-vitejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihatorikei%2Fcodeigniter-vitejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mihatorikei","download_url":"https://codeload.github.com/mihatorikei/codeigniter-vitejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230423563,"owners_count":18223435,"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":["bundler","codeigniter","codeigniter4","react","reactjs","svelte","sveltejs","vite","vitejs","vue","vuejs"],"created_at":"2024-09-24T14:14:21.354Z","updated_at":"2024-12-19T11:12:03.841Z","avatar_url":"https://github.com/mihatorikei.png","language":"PHP","readme":"\u003cdiv align=\"center\"\u003e\n\t\u003cimg width=\"160px\" src=\"src/logo.png\"\u003e\n  \t\u003ch1\u003eCodeigniter + viteJs\u003c/h1\u003e\n  \t\u003cp\u003eVitejs Integration For Codeigniter4\u003c/p\u003e\n\t\u003cp\u003e\n\t\t\u003ca href=\"https://github.com/firtadokei/codeigniter-vitejs/releases\"\u003e\n\t\t\t\u003cimg src=\"https://custom-icon-badges.herokuapp.com/github/v/release/firtadokei/codeigniter-vitejs?logo=tag\"\u003e\n\t\t\u003c/a\u003e\n\t\t\u003ca href=\"https://github.com/vitejs/awesome-vite#codeigniter\"\u003e\n\u003cimg src=\"https://awesome.re/mentioned-badge.svg\"\u003e\n\u003c/a\u003e\n\u003cimg src=\"https://custom-icon-badges.herokuapp.com/packagist/stars/mihatori/codeignitervite?logo=star\"\u003e\n\t\t\u003ca href=\"https://packagist.org/packages/mihatori/codeignitervite\"\u003e\n\t\t\t\u003cimg src=\"https://badges.hiptest.com:/packagist/dt/mihatori/codeignitervite?color=%23c700ff\u0026logo=packagist\u0026logoColor=%23c700ff\"\u003e\n\t\t\u003c/a\u003e\n\t\t\u003ca href=\"LICENSE\"\u003e\n\t\t\t\u003cimg src=\"https://custom-icon-badges.herokuapp.com/packagist/l/mihatori/codeignitervite?logo=law\"\u003e\n\t\t\u003c/a\u003e\n\t\u003c/p\u003e\n\u003c/div\u003e\n\nCodeigniter vite is a package that aims to integrate [vitejs](https://vitejs.dev/) with [codeigniter4](https://codeigniter.com/) in a simple way.\n\n## Features:\n - ⏱️ Almost zero configuration\n - 🧩 Easy to install and remove\n - 🔨 Easy to customize\n - ✌️ Support most used frameworks: `react`, `vue`, and `svlete`. (check [v2](https://github.com/firtadokei/codeigniter-vitejs/tree/v2) for SvelteKit support)\n - 🔥 Enjoy hot module replacement (HMR)\n \n## Installation:\n\n```\ncomposer require mihatori/codeignitervite\n```\n\nthen from your project root, run:\n\n```\nphp spark vite:init --framework \u003cframework\u003e\n```\n\nreplace `\u003cframework\u003e` with `vue`, `react`, `svelte`, or `none`\n\nor you can just run:\n\n```\nphp spark vite:init\n```\n\nour buddy `spark` will handle the rest for you 🙃\n\n## Getting Started:\n- Install your node dependencies: `npm install`\n- Start vite server: `npm run dev`\n- Start CI server: `php spark serve` or access it through your virtual host.\n- That's all =)\n\n\u003e **NOTE:**\n\u003e \n\u003e `npm run dev` is not where you should work, it main purpose is to serve assets, such as scripts or stylesheets.\n\u003e once you build your files, it becomes useless\n\u003e but as long as it running, the package will use it instead of the bundled files.\n\u003e So make sure to **access your project** from ci server or a vitual host.\n\n## Build your files:\n\nto bundle your files, run: \n```\nnpm run build\n```\nthis command will generate the bundled assets in your public directory. \nbut as we said before, as long as vite server is running, the package will use it instead of bundled files, so make sure to stop it when you're done developing.\n\n## Uninitialize:\n\n`composer remove mihatori/codeignitervite` command will remove the package, but the generated files will remain there (package.json, vite.config.js ...etc).\nso to avoid that, make sure to run the following command first:\n\n```\nphp spark vite:remove\n```\nThis command will do the following:\n- delete `package.json`, `packages.lock.json` and `vite.config.js`.\n- delete `resources` folder.\n- And finally restore your `.env` file.\n\n## 🔥 Need a quick start?\nCheck out our starter apps for [svelte](https://github.com/firtadokei/ci-svelte-appstarter) and [vue](https://github.com/firtadokei/ci-vue-appstarter).\n\n\u003ca href=\"https://github.com/firtadokei/ci-svelte-appstarter\"\u003e\n\t\u003cimg width=\"120px\" src=\"https://github.com/firtadokei/ci-svelte-appstarter/raw/master/ci-svelte.webp\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/firtadokei/ci-vue-appstarter\"\u003e\n\t\u003cimg width=\"120px\" src=\"https://github.com/firtadokei/ci-vue-appstarter/raw/master/ci-vue.webp\"\u003e\n\u003c/a\u003e \n\n## Contributing\nAll contributions are welcome, it doesn't matter whether you can code, write documentation, or help find bugs.\nfeel free to use issues or pull requests.\n\n## Support\nUnfortunately, I don't drink coffee 💔, but you can star it instead 🙃\n\n## License\n\nMIT License \u0026copy; 2022 [Mihatori Kei](https://github.com/firtadokei)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmihatorikei%2Fcodeigniter-vitejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmihatorikei%2Fcodeigniter-vitejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmihatorikei%2Fcodeigniter-vitejs/lists"}