Download the PHP package cwssrl/eloquent-lumen-generator without Composer

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

Eloquent Lumen Generator

Eloquent Lumen Generator is a tool based on Code Generator for generating Eloquent models. It comes with the possibility to generate the following items:

Requirements

To make this package works you have to make your migrations and run them. All the package will create items based on the table that it can find on the database set on your .env file.

Installation

Step 1. Add Eloquent Lumen Generator to your project:

Step 2. Register GeneratorServiceProvider in bootstrap/app.php file:

Step 3. Uncomment AppServiceProvider in bootstrap/app.php file:

Step 4 (optional). If you want to edit package configurations, you have to copy vendor/cwssrl/eloquent-lumen-generator/src/Resources/eloquent_model_generator.php into your config folder.

Usage

Use

to generate all you need for the Book class. Generator will look for table with name books and generate the model, the repo, the contract, the controller, the routes for it.

You can also generate data for all your tables at once

Valid options

You can use these options as command parameters

Option Description
table-name Set the table name generator has to use generating your model (e.g. "cws:generate Test --table-name=hello" will use table named "hello" to generate model "Test"). It can be used only when one model a time is created.
output-path Set the path name generator has to use saving your model relative to app folder (e.g. "cws:generate Test --output-path=hello" will save your model "Test" in app/hello folder).
namespace Set the namespace name generator has to use generating your model (e.g. "cws:generate Test --namespace=hello" will use namespace "hello" to generate model "Test").
base-class-name Set which class will extends your model (e.g. "cws:generate Test --base-class-name=hello" will extends "hello" class generating "Test").
no-timestamps Set timestamps property to false
date-format dateFormat property
connection connection property
except-tables Tables to not process separated by ","
api-resource Creates api resource too
repository Creates repository too
api-controller Creates api controller too
api-routes Creates api routes too
api-routes-path Set the path where find api route file (default api.php)
all-api Create all objects related to api, models and repos included

Contributing

Please see CONTRIBUTING for details.

Testing

Changelog

Please see CHANGELOG for more information what has changed recently.

Credits

This package is heavily based on Cws Code Generator that is a fork of the krlove/code-generator package

License

The MIT License (MIT). Please see License File for more information.


All versions of eloquent-lumen-generator with dependencies

PHP Build Version
Package Version
Requires php Version ~7.2
laravel/lumen-framework Version ^6.0
doctrine/dbal Version ^2.5
cwssrl/code-generator Version ^1.0.4
illuminate/routing Version ^6.0
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 cwssrl/eloquent-lumen-generator contains the following files

Loading the files please wait ....