Download the PHP package wenjy/laravel-model-gen without Composer

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

Laravel Model Generator

参考 YII的 model generator

使用说明

参数表名:--table 不传入表名,默认生成所有表的model,例如 --table=test_comments

参数模型类名:--model,例如 --model=TestAbc 不传入模型类名,使用表名单数大驼峰命名方式

参数数据库连接名:--conn,例如 --conn=test_conn 不传入数据库连接名,使用默认的数据库连接

参数命名空间:--ns,例如 --ns=App\Models\Tests 不传入命名空间,默认使用 App\Models

test_comments 表结构为:

执行 php artisan gen:model --table=test_comments

会生成文件TestComment

注意

laravel 8、laravel 9 只支持MySql(其它的数据库没有把SQL复制过来),laravel 10原生支持Schema::getColumns Schema::getTables()


All versions of laravel-model-gen with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
illuminate/support Version ^7.0|^8.0|^9.0|^10.0
phpspec/php-diff Version ^1.1.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 wenjy/laravel-model-gen contains the following files

Loading the files please wait ....