Download the PHP package ferdinandfrank/laravel-file-generator without Composer

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

Laravel File Generator

Packagist Version Packagist

:warning: This repository has been archived since the functionality of the package is now natively supported by Laravel 7. See the Laravel 7 changelog for details.

This package is an easy extension of the Artisan make commands provided by your Laravel application to have the ability to modify the command's stubs to your personal needs and to generate fully implemented php classes (controller, requests, policies, etc.) for a specified model.

Requirements

For the latest command options as described in the Wiki of this package use the latest Laravel version.

Installation

  1. To get started, install the package via the Composer package manager:

  2. Replace the entry Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class within your providers array in config/app.php:

  3. The package should be auto-discovered by Laravel. For manual registration, add the following entry to your providers array in config/app.php:

That's it!

Usage

You can use the Artisan make commands provided by your Laravel application as always. This package is just an extension to provide more options and the flexibility to specify your own stub files. For example, just execute the following command to create a new controller class with the name UserController but with your custom specified stub file (if one exist):

php artisan make:controller UserController

For more details as well as a list of all available commands have a look at the wiki of this package.

Publishing stub files

To have the full benefits of this package you can execute the following command to publish all the stub files which are used to create the php files when executing an Artisan make command.

php artisan vendor:publish --tag=stubs

By default the stub files will be copied to the resources\stubs folder of your application. As soon as you call an Artisan make command after you executed this publishing command the stub files for generating a new php file will be used as the template from this folder. To modify the path to your stubs file have a look on the next section 'Configuration'.

Configuration

You have the possibility to modify the path to your stub files as well as other configuration options. Therefore you need to publish the configuration file of this package by the following command.

php artisan vendor:publish --tag=config

This command will generate the file laravel-file-generator.php within your config folder of your Laravel application.

Commands

You can see all details and documentation about the available make commands on the wiki of this package.

License

MIT


All versions of laravel-file-generator with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
laravel/framework Version >=5.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 ferdinandfrank/laravel-file-generator contains the following files

Loading the files please wait ....