Download the PHP package light2000/laravel-modeler without Composer

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

Laravel Modeler

Laravel Modeler 是一个面向 Laravel 项目的本地建模与代码生成工具入口包。 通过 Composer 安装后,可使用 Artisan 命令下载并启动 Modeler Studio / Generator,完成模型设计、关系设计,并生成 Laravel 常用代码。

界面预览

以下为 Modeler Studio 界面截图(从左到右为 模型画布 → AI字段推荐 → 代码生成)。


项目定位

light2000/laravel-modeler 是 Laravel Modeler 工具链的 Composer PHP 包,主要负责:

它本身不是一个完整的低代码平台,而是 Laravel 项目中的本地开发辅助工具。


功能特性


环境要求

建议环境:

注:Studio / Generator 为独立二进制程序,不同系统需要下载对应版本。


安装

在 Laravel 项目根目录执行:

如果 Laravel 自动发现 Service Provider 正常工作,通常不需要手动注册。


初始化 / 安装二进制

安装 Composer 包后,执行:

该命令通常会完成以下工作:

目录示例:

Windows 下二进制通常带 .exe 后缀;Linux / macOS 下通常不带后缀。


启动 Studio

执行:

命令会启动本地 Studio 服务,并在浏览器中打开可视化建模界面。

如果当前环境没有桌面或无法自动打开浏览器,可以查看命令行输出的本地访问地址,然后手动访问。


生成代码

当模型设计完成后,可通过 Studio 界面触发生成,也可以使用 Artisan 命令调用 Generator。

常见生成内容包括:

具体支持范围以当前版本的 Generator 为准。


配置

Laravel Modeler 会读取 config/modeler.php 或内部默认配置。常用配置项包括:

也可以通过 php artisan vendor:publish --tag=modeler-config 命令将原始config发布到your-laravel-project/config中

可在 .env 中覆盖:


建议加入 .gitignore

.modeler 目录通常包含本地二进制、日志、临时文件和本机配置,建议不要提交到 Git:

如果你的团队希望共享模型 schema 文件,可以只提交 schema 或项目配置文件,不提交二进制文件。


安全说明

Laravel Modeler 的 Studio / Generator 是本地二进制程序。首次运行时,系统或终端可能会提示是否允许执行,这是正常现象。

建议:


常见问题

1. Composer 包是否包含 Studio / Generator?

Composer 包主要提供 Laravel 集成入口和 Artisan 命令。Studio / Generator 通常通过 modeler:install 下载到项目的 .modeler/bin 目录。

这样可以避免 Composer 包体积过大,也方便不同系统下载对应二进制。

2. 为什么不把二进制放到 vendor 目录?

vendor 目录由 Composer 管理,更新或重新安装依赖时可能被覆盖。.modeler 更适合存放本地工具、日志和生成器运行数据。

3. 没有桌面的 Linux 服务器能用吗?

可以运行命令,但 Studio 是可视化界面,通常更适合在本地开发机使用。无桌面环境下可以通过命令行生成,或将 Studio 服务地址暴露给可访问浏览器的环境。

4. 是否会覆盖已有代码?

生成器应尽量遵循“生成文件”和“用户自定义文件”分离的原则。实际覆盖策略请以当前版本说明和生成前提示为准。建议在 Git 工作区干净时执行生成,方便查看 diff。

5. 是否需要提交 .modeler?

通常不建议提交整个 .modeler。如果 schema 文件位于 .modeler 中,可以按团队约定只提交 schema,不提交二进制、日志和临时文件。


开发目标

Laravel Modeler 希望解决的是:

在 Laravel 项目早期,通过可视化模型设计快速建立稳定、清晰、可重复生成的基础Model代码。

它更关注:


License

MIT


Links


All versions of laravel-modeler with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^12.0|^13.0
illuminate/console Version ^12.0|^13.0
illuminate/database Version ^12.0|^13.0
symfony/process Version ^7.0
guzzlehttp/guzzle Version ^7.8
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 light2000/laravel-modeler contains the following files

Loading the files please wait ...