Download the PHP package yassinedoghri/codeigniter-vite without Composer

On this page you can find all versions of the php package yassinedoghri/codeigniter-vite. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package codeigniter-vite

CodeIgniter Vite

An opinionated Vite integration for CodeIgniter4 projects.


Easily manage and bundle JavaScript, TypeScript and CSS files with a Resources folder in your CodeIgniter app:

🚀 Getting started

0. Prerequisites

  1. Install Node.js* with one of the following package managers:

    • npm (should be included with Node install)
    • pnpm (recommended),
    • yarn
  2. create a package.json file:

*You may want to use Deno or Bun instead.

1. Setup

  1. install codeigniter-vite using composer:

  2. install Vite with @rollup/plugin-multi-entry:

  3. copy the following vite.config.js file in the root of your CodeIgniter project:

  4. Add Vite's scripts to your package.json:

  5. Create the Resources folder in your CodeIgniter app folder:

  6. Edit your app/Config/Vite.php config file to inject your styles and scripts in your routes:

  7. That's all! Your assets will get automatically linked in the <head> of your routes depending on the mapping you define.

2. Run the dev environment

Run Vite's dev server with:

By default, the server will launch @http://localhost:5173. See the config reference to change the host or port.

3. Bundle for production

For production, run the build command:

This will create an assets folder in your public directory including all of your bundled css and js files + a manifest.json file under a .vite/ directory.

⚙️ Config reference

Routes/Assets mapping

For assets to be injected in your routes <head>, you must define the $routesAssets property in your app/Config/Vite.php file.

The $routesAssets property takes in an array of routes/assets mappings:

Environment Variables

You can tweak the following environment variables to your liking:

Note that you can use the * wildcard to match any other applicable characters in the routes.

❤️ Acknowledgments

This wouldn't have been possible without the amazing work of the CodeIgniter team.

Inspired by codeigniter-vitejs.

📜 License

Code released under the MIT License.

Copyright (c) 2025-present, Yassine Doghri (@yassinedoghri).


All versions of codeigniter-vite with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package yassinedoghri/codeigniter-vite contains the following files

Loading the files please wait ....