Download the PHP package abdelilahlbardi/laragenerator without Composer

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

Laragenerator

Laravel 5.4 generator

Building a laravel project comes from an idea. So why not to build the main idea behavior and leave the rest to Laragenerator in order to bootstrap your project. This package helps you to focus more about your project idea. DRY.

The current features help you to : `

If you have any suggestions please let me know : https://github.com/AbdelilahLbardi/Laragenerator/pulls.

Installation

First, pull in the package through Composer.

And then run :

After that, include the service provider within config/app.php.

Usage

The package extends Laravel Artisan and add generate:resource command :

Here's a quick example of how to bootstrap your laravel idea:

Name Type Exemple Usage
Model Argument Backend/Article Required
Schema Argument --schema="title:string, content:text, slug:string:unique" optional
Relationships Option --relations="hasmany:tags, belongsto:user" optional
Without controller Option --without-controller optional
Without model Option --without-model optional
Without request Option --without-request optional
Without views Option --without-views optional
Without routes Option --without-routes optional
Without migration Option --without-migration optional
Use flash Option --with-flash optional
Rollback Option --rollback optional

Examples

Bootstrapping with all the resources

You will notice additional files and folders appearing in your project :

Bootstrapping without the model

This will generate the same files as the recent command but will no include :

Since --schema is an optional option, if you don't specify the --schema option, Laragenerator generates an empty model with a simple id and timestamps.

To do so, here's a simple command.

The migration file will look like:

``

Rollback

With the Laragenerator `--rollback` option, you don't need to delete the generated folders manually. It does all the job for you.

Notice that if you have more controllers this options doesn't delete all the controllers in the namespace.

Templates publishing

You may want to customize the templates like the following artisan command:

This will add a new folder to your app called Tempaltes where you will find the following files:

Schema

Since Laragenerator uses https://github.com/laracasts/Laravel-5-Generators-Extended to generate migration and schema

you can find the related documentation here: https://github.com/laracasts/Laravel-5-Generators-Extended.


All versions of laragenerator with dependencies

PHP Build Version
Package Version
Requires laracasts/generators Version master@dev
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 abdelilahlbardi/laragenerator contains the following files

Loading the files please wait ....