Download the PHP package ttbooking/vite-manager without Composer

On this page you can find all versions of the php package ttbooking/vite-manager. 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 vite-manager

Laravel Vite Manager

This package extends Vite functionality built in Laravel, so you can manage multiple entry point (hereafter app) configurations without clogging your Blade templates with clumsy configuration code. It is especially useful if your project have multiple JS entry points, or if you develop a package which publishes its own Vite managed assets.

Installation

You can install this package using Composer:

Then you'll probably need to publish configuration file:

Configuration

There are 3 ways to configure Vite "apps".

Config file

The most basic way. Use it if you develop a project with few entry points. Example config/vite.php file:

You may find complete list of configurable options here.

Note VITE_APP environment variable, which you can use to customize default entry point per environment:

Service provider's boot method

Advanced method. Use it if you develop a package with Vite assets, or if you need fine-grained control over your app configuration:

You can use your AppServiceProvider.php (or other of your choice) for this matter, but it is recommended to use separate provider, especially if you have many entry point configurations. Just don't forget to register this service provider in your config/app.php file.

App factory

The most advanced method. Use it if you have many similar apps/workspaces to be configured alike:

Closure passed into useAppFactory retrieves 4 arguments: a Vite class instance to be configured by the factory, app name, corresponding configuration section (if exists), and application's container instance. You may (or may not) want to amend instance's configuration by the options from config file. To do this, call configure method on Vite instance with the given $config variable. This way, end user could change predefined options on per-app basis.

Usage

@viteApp directive should be used in Blade templates:

If you are using template engine other than Blade, you can use vite_app helper function:

If you are using TwigBridge, don't forget to register this function in config/twigbridge.php file under extensions.functions section.


All versions of vite-manager with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/framework Version ^10.18 || ^11.0 || ^12.0
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 ttbooking/vite-manager contains the following files

Loading the files please wait ....