Download the PHP package yudhees/laravel-vue-controller without Composer

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

laravel-vue-controller - To access your controller within a vue file

[!NOTE] Welcome To laravel-vue-controller , I request you to read the below documentation clearly

Installation

Composer

 composer require yudhees/laravel-vue-controller

or

Begin by installing this package through Composer. Edit your project's composer.json file to require yudhees/laravel-vue-controller.

"require-dev": {
     "yudhees/laravel-vue-controller": "1.5"
}

Next, update Composer from the Terminal:

composer update 

[!NOTE]
if You are using Laravel > 4 Skip the below step because The service provider is auto discover then no need to register this provider

Laravel <=4

Once this operation completes, the final step is to add the service provider. Open config/app.php, and add a new item to the providers array.

Yudhees\LaravelVueController\vuecontrollerserviceprovider::class

Note

The service Provider Contains the Default Route , Be Sure that This Route is not registered in any of your route file

Route::post('/vuecontroller',vuecontroller::class)->name('vuecontroller');

Usage

[!NOTE] In This Example I am using Inertia.js

In Your app.js file simply add this

import {controller} from '../../vendor/yudhees/laravel-vue-controller/compostables/global.js'

app.js

Global

Two Ways to Inject controller function to vue Components

Provide/Inject

or

Global Properties

Controller Fucntion

Controller Function Accepts Two Arguments The First Argument Represents Path of the Controller controller(controllerPath,functionname,params={})

[!NOTE] Default prefix path of the Controller is App\Http\Controller

Example

I Created a UserController using This Command

  php artisan make:controller UserController

The Example UserController is Look Like this

Vue Template

userslist.vue

Scripts

Composition api vue 3 (Provide/Inject)

Option API (Global Properties)

Vendor Files

vuecontroller.php file

License

laravel-vue-controller is open-source software released under the MIT license. See LICENSE for more information.


All versions of laravel-vue-controller with dependencies

PHP Build Version
Package Version
Requires php Version >=4.0.0
illuminate/support Version ^10.46
illuminate/http Version ^10.46
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 yudhees/laravel-vue-controller contains the following files

Loading the files please wait ...