Download the PHP package ipunkt/laravel-scaffolding without Composer

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

Scaffolding for your project

Latest Stable Version Latest Unstable Version License Total Downloads Build Status

This laravel package can scaffold a new resource within seconds. It uses all project-based template stubs to get your project-based setup within the stubs.

You provide your type of scaffolding by providing your stubs. We seed the first stubs with the package publishing. Afterwards you can modify all stubs to suit your needs. After configuring your stubs they will automatically be generated.

This boosts your development time a lot.

Quickstart

We support package auto-discovery for laravel, so you are ready to use the package.

Installation

Add to your composer.json following lines

"require-dev": {
    "ipunkt/laravel-scaffolding": "*"
}

You can publish all provided files by typing php artisan vendor:publish and select the LaravelScaffoldingServiceProvider. We also provide tags scaffolding-config and scaffolding-stubs for the corresponding resources.

Configuration

The main configuration is divided into two parts: resources and placeholder.

Resources Configuration

Here is a full example resource configuration:

Foreach resource you have to configure one or more sets of an array with the keys stub (the stub file), target (transformed file will be saved there) and optional append to configure whether the file gets appended or created.

The stub represents a text file with placeholders. The target property can handle placeholders and resolves the directory a resource gets saved to. Namespace separator will be automatically replaced by a directory separator.

Placeholder Configuration

You can add necessary placeholders yourself. Simply add your keys and a callback as value. The callback gets resolved by calling value() function with it internally.

Within the stubs and target values you can use them with the prefix {{ and the suffix }} surrounded.

These placeholders are provided internally:

Placeholder Value for Resource User Value for Resource Administration\User
{{Namespace}} empty string Administration
{{\Namespace}} empty string \Administration
{{Namespace\}} empty string Administration\
{{namespace}} empty string administration
{{\namespace}} empty string \administration
{{namespace\}} empty string administration\
{{.namespace}} empty string .administration
{{namespace.}} empty string administration.
{{Model}} User User
{{model}} user user
{{Models}} Users Users
{{models}} users users
Placeholder Value for Resource UserModel
{{Model}} UserModel
{{model}} user-model
{{Models}} UserModels
{{models}} user-models

Usage

First you have to publish the scaffold stubs.

Then you can scaffold your first resource:

Command parameter

You can force the creation with overwriting already existing files with the option --force.

If you wan only some resources to be generated use --with or --except for each resource type you want to include or exclude. Each parameter can be used multiple with lowercased resource type names like model, controller and so on.

Show resource types configured

You can display all configured resource types with this command:


All versions of laravel-scaffolding with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
illuminate/console Version ^5.5
illuminate/support Version ^5.5
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 ipunkt/laravel-scaffolding contains the following files

Loading the files please wait ....