Download the PHP package shamaseen/repository-generator without Composer

On this page you can find all versions of the php package shamaseen/repository-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 repository-generator

Scrutinizer Code Quality Code Coverage Build Status Code Intelligence Status SymfonyInsight

IMPORTANT: We have created this repository to be a part of a specific workflow, it wasn't designed to be compatible with every project, but it became popular, so we decided to create a new better one with flexibility in mind, use this package instead.

Repository Generator

Autogeneration for repository pattern files, This package is aim to generate Contract (interface), Entity (model), Controller, Repository, Request validation and view files for specified module.

No Need to bind the interface to the repository, it will be auto-bind !

*Note: if you are using laravel, you should've at least version 5.7

Requirement

This package require the following dependencies: "illuminate/console": "^5.7", "illuminate/support": "^5.7"

Install

1- Require this package with composer using the following command:

2- publish the package config file by running:

and select repository-generator.

3- To enable validation messages to be delivereid, You need to move StartSession and ShareErrorsFromSession from $middlewareGroups in http karnel to $middleware.

Publish stubs

If you want to have a custom stubs rather than the default ones, you can change the path of the stubs folder in repository config, then run the following command:

and select repository-stub, this will publish all the stub templates to the specified path on repository config. Feel free to edit stubs templates.

How to use

To generate repository files run the following command:

where Folder is optional.

To generate views and languages files just add --only-view option in the command.

To remove a repository files that has been already created, you can use Remover like the following:

Examples

To generate repository files for product, run the following:

Note: You can use Product instead of Products/Product, this will not make new folder with the class.

Then generate views and languages files:

License

Repository-generator is a free software distributed under the terms of the MIT license.


All versions of repository-generator with dependencies

PHP Build Version
Package Version
Requires illuminate/console Version >5.7
illuminate/support Version >5.7
doctrine/dbal Version >2.8
illuminate/database Version >5.7
illuminate/routing Version >5.7
illuminate/validation Version >5.7
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 shamaseen/repository-generator contains the following files

Loading the files please wait ....