Download the PHP package ycgambo/laravel-vue-templates without Composer

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

This repo is no longer maintained. :)

Laravel Vue Templates

A Laravel admin template to generate dynamic Vue tags in blades. Focus on data, not render.

中文文档

Why

Though Laravel Blade and Vue are handy, we can not use them both(unless we use Vue as a library).

This leaves us two options to develop a admin site:

  1. use laravel as an api server and deploy another vue application
  2. use laravel blade engine with jquery and get ride of vue

Option 1 is the best choice if you are a full stack developer or the project itself is scaled. Option 2 is very painful for those complex admin pages.

So, thanks to the vue-admin project, I warped it so to fit backend developer's habits.

It deals with these painful stuff:

  1. menus (generate menu tree, detect current menu)
  2. async page loading(load new blade into page content with no redirect)
  3. vue plugins (write vue tags in blade)

Install

Install package:

composer require ycgambo/laravel-vue-templates

Add this line into your providers in config/app.php(no need for laravel 5.8+):

Yb\LVT\ThemeServiceProvider::class,

Release resource:

php artisan vendor:publish --provider='Yb\LVT\ThemeServiceProvider'

Access hostname/lvt/VueAdmin/example/dashboard to visit the pages.

Checkout this online Demo that I deployed on my server.

Also, there are a directory resources/laravel-vue-templates which copied out of this package that contains example references.

Comment out this line if you don't want those example routes:

Yb\LVT\ThemeServiceProvider::class,

Usage

Register into Blade component:

VueAdmin::create($namespace, 'example')->with('menus', $menus)->boot();

And use in blades:

The menus is an array like this, see how to generate it:

If you want to extend the layout:

VueAdmin::create($namespace, 'example')->inject('admin.base')->with('menus', $menus)->boot();

You can then inject it by using _example in you admin.base blade:

And use injected blades:

Route Examples

Regsiter admin routes: (app/Providers/RouteServiceProvider.php)

The view directory tree:


All versions of laravel-vue-templates with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
laravel/framework Version ^5.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 ycgambo/laravel-vue-templates contains the following files

Loading the files please wait ....