Download the PHP package dalpizzol/laravel-viltify without Composer

On this page you can find all versions of the php package dalpizzol/laravel-viltify. 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 laravel-viltify

Total Downloads Latest Stable Version License

Laravel VILTify

Laravel VILTify is a heavily opinionated Laravel starter kit. It's intent is to seamlessly integrate Vue, Inertia.js, Laravel, TailwindCSS and Vuetify, so you don't waste your time learning how to do it and focus on writing your application, leaving setup behind.

Table of contents

Requirements

Quick Start

HEADS UP: this package is meant to be used ONLY ON FRESH LARAVEL INSTALLATIONS.

HEADS UP:

Be aware that you're running two servers, just like when you use Laravel Mix. Your PHP application runs at port 80 while the devserver runs at 8080. So, in your browser, you navigate to your PHP application at port 80, for instance: http://localhost.

Troubleshooting

In some scenarios, if you're using Node.js 17.x.x or higher, you might encounter an ERR_OSSL_EVP_UNSUPPORTED error when running the resources/package.json scripts, like npm run serve or npm run build.

This is related to changes introduced by Node.js 17 and you can read more about this here, here, and here.

You don't need to downgrade Node.js. Instead, just prepend NODE_OPTIONS=--openssl-legacy-provider to your resources/package.json scripts:

Why would I use this instead of Laravel Breeze or Laravel Jetstream?

This package is actually heavily based on Laravel Breeze. A lot of code was simply ripped off from that. But there's some advantages here:

Vue CLI instead of Laravel Mix

This package actually turns your resources folder into a Vue app generated by Vue CLI. This means that inside resources you can do things like vue add some-vue-cli-plugin which you can't when using Laravel Mix. Vue CLI is also much more stable than Laravel Mix and much more focused and battle tested for use with Vue, so you are probably going to save some time avoiding common issues related to Laravel Mix.

This also allows you to use Vue CLI's GUI inside resources, if that's your thing...

Vuetify's full power in your hands

While official Laravel starter kits delivers a dozen Vue components, they are fairly simple. Laravel VILTify comes with Vuetify UI component library already installed and configured so you can take advantage of 70+ highly customizable, responsive and beautiful components based on Google's Material Design.

No conflicts between Vuetify and TailwindCSS classes

Laravel VILTify comes with Vuetify and TailwindCSS already configured so you can use both without worrying about class collisions. All you have to do is to prefix your tailwind classes with tw-.

Inertia.js conveniences

The v-link global component

Laravel VILTify offers a globally registered v-link component which is a Vuetify v-btn component wrapped by an Inertia.js Link component. This way you can use Inertia.js links everywhere without having to remember to include the Link component locally on every component and they can use every style available to v-btn components. Inertia's Link component is also registered globally.

Server driven toast notifications

It also ships with a server driven toast notification system specifically crafted to work nicely with Inertia.js. This means you can do things like this:

Another cool feature it offers are validation toasts. This is usefull when you have some "invisible data" on a form that may not be valid. For instance, a reCaptcha V3 token. Since there's no visible form element for the token, you may want to toast the validation error if the token validation fails.

Make sure you call Toast::validation before you actually run your validations.

Resonable defaults with production builds in mind

Code Splitting out of the box

Since we're dealing with SPAs, Laravel VILTify makes sure that code splitting takes place. All the files needed by any route are loaded on demand by default.

Material Design Icons JS SVG instead of WebFont

By default Vuetify comes configured to use @mdi/js instead of a regular WebFont, so it enforces that you only ever load the icons you really need. Learn more here.

Separeted builds for different endpoints

If you need a separate build for an entirely different endpoint, for instance, an admin area, follow these steps:

1. Duplicate resources/src/templates/app.blade.php and rename it to resources/src/templates/app-admin.blade.php. This will be your Inertia's rootView.

2. Create a new entry in the pages prop at resources/vue.config.js.

3. Duplicate the resources/src/main.js and rename it to resources/src/admin.js.

4. Then, you need to instruct Inertia to use the app-admin.blade.php view when rendering an admin page.

Isolated client side environment settings

When using Laravel Mix, client side environment settings are put into MIX_ prefixed variables inside .env file. Here, since our resources folder is actually a Vue CLI generated app, you can leverage the pattern shipped by Vue CLI do deal with environment variables. Laravel VILTify comes out of the box with a resources/.env.local for the devserver and a resources/.env.production example file, so you can deal with every client side setting separated from Laravel settings.

Drawbacks

Since the intent here is to use Vuetify, we're still using Vue 2 and Webpack instead of Vue 3 and Vite, since Vuetify support for Vue 3 hasn't released yet.

License

This software is provided free of charge and without restriction under the MIT License


All versions of laravel-viltify with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0
illuminate/filesystem Version ^9.3
illuminate/support Version ^9.3
illuminate/validation Version ^9.3
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 dalpizzol/laravel-viltify contains the following files

Loading the files please wait ....