Download the PHP package bencomeau/artisan-make-view without Composer

On this page you can find all versions of the php package bencomeau/artisan-make-view. 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 artisan-make-view

Laravel View Generator

Introduction

Quickly create views and view resources from the Artisan console, saving a surprising amount of time.

Code Samples

Creating views is as easy as:

php artisan make:view user  // creates --> index, create, show, edit views in the resources/views/user directory

php artisan make:view user.index  // creates --> resources/views/user/index.blade.php

Using something other than blade templates?

php artisan make:view user.index -e twig  // creates --> resources/views/index.twig

Want to use a view path you specified in config/view.php?

// If your config/view file looks like this:
'paths' => [
    resource_path('views'),
    resource_path('my-custom-view-folder')
],

// Then just pass the key you want to use, like this:
php artisan make:view user.index -p 1  // creates --> resources/my-custom-view-folder/index.blade.php

Install

To get started, use composer to require this package:

composer require bencomeau/artisan-make-view --dev

Then simply register the package's Service Provider in your app/Providers/AppServiceProvider.php file:

Note: Laravel 5.5 and above uses Package Auto-Discovery; if you are using Laravel >= 5.5 it is not necessary to manually add the service provider as shown below.

public function register()
{
    if ($this->app->environment('local')) {
        $this->app->register(\BenComeau\ArtisanMakeView\ArtisanMakeViewServiceProvider::class);
    }
}

And you're ready to quickly generate views!

Usage

To list all command options

php artisan make:view --help

Make a single view by name, in dot notation

php artisan make:view user.index

Make a view resource by passing just the name of the resource

php artisan make:view user -r

Make a view with a custom extension

php artisan make:view user.index -e twig

Make a view and store it in another directory Note: -p 1 refers to the value of array key of 1 in your config('view.paths') setting.

php artisan make:view user.index -p 1

Combine multiple options to fully-customize the view(s) being created Note: this will create all resource views in your custom directory, with the twig extension.

php artisan make:view user -r -p 1 -e twig

License

Artisan Make View is open-sourced software licensed under the MIT license.


All versions of artisan-make-view with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.4
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 bencomeau/artisan-make-view contains the following files

Loading the files please wait ....