Download the PHP package georgehanson/modelrepositorygenerator without Composer

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

Model Repository Generator

This package is archived

This is a package for Laravel 5 which allows you to easily generate repositories, contracts and models. It brings two new automatic file creation commands (Repositories and Contracts), as well as enhancing the current model creation command.

Installation

Once you have downloaded this package, you simply need to add the service provider to your config/app.php file. You should add the following service provider:

Once you have added the package to your service provider, be sure to run php artisan vendor:publish to publish the config file. Once this is done you can use this config file to change where you would like your models, repositories and contracts to be stored. You do not need to include your main applications namespace.

Generating Contracts

Generating contracts is simple and easy. Simply run the following command: php artisan generate:contract ContractName. Here you can set the contract name to whatever you would like.

Generating Repositories

To generate a repository simply run the following command: php artisan generate:repository Repository Model. As you can see the first argument this command takes the name of the repository and the second is the name of the model this repository is for. This will also generate a contract for the repository and implement that contract on the newly created repository.

Enhanced Model Generation

This package enhances the default model creation command which comes by default with Laravel. To generate a model you can simply run the following command: php artisan generate:model Model, replacing "Model" with the name of your choice. Not only will this create a model, it will also create a contract for this model and make the model implement the newly created contract.

You can also automatically generate a repository by passing the -R flag. For example, php artisan generate:model Model -R. This will generate a model, a contract for that model, a repository for that model and a contract for the repository.

You can also pass through the default flags which come out of the box with laravel such as -m to create a migration or -c to create a controller.


All versions of modelrepositorygenerator with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ^5.4
illuminate/console Version ^5.4
illuminate/filesystem 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 georgehanson/modelrepositorygenerator contains the following files

Loading the files please wait ....