Download the PHP package yantico/laravel-dev without Composer

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

Laravel Dev

Laravel 12/13 快速开发工具包

基于 约定优于配置 的理念,通过数据库表结构自动生成 Model、Controller、Migration、Enum、Test,
解析 Controller 源码自动产出 OpenAPI 文档和 ER 图,内置 Builder 宏、统一异常处理、权限校验等常用能力。

Latest Version on Packagist Total Downloads PHP Version Laravel Version License


目录


核心能力

能力 说明
代码生成 从数据库表结构一键生成 Model(Base + 可编辑双层)、Controller(CRUD)、Enum、Migration、Test
路由自动发现 Controller 放到 App\Modules\ 即自动注册路由,无需手动写 routes/*.php
OpenAPI 文档 解析 Controller 源码中的 request()->validate() 和 DocBlock 注解,零配置产出 OpenAPI 3.1 规范
ER 图 基于 PlantUML 自动生成数据库表关系图,按业务分组
Builder 宏 ifWhereifWhereLikepageorder 等条件链式查询,告别重复的 if ($params['xxx']) 判断
统一响应 JsonWrapperMiddleware 自动包装 {success, data} 格式,分页自动加 meta
异常处理 ee() 全局抛异常 + ExceptionRender 统一渲染 JSON 错误响应

环境要求

依赖 版本
PHP >= 8.2
Laravel >= 12.0 或 >= 13.0

安装

发布配置文件和 API 文档前端资源到项目中:

发布后会在你的项目中生成:


5 分钟快速上手

假设你已经有一个正在运行的 Laravel 项目,并且数据库中有一张 users 表。

第 1 步:编辑项目基础文件

安装后需要编辑 6 个基础文件(新建 1 个 + 编辑 5 个),详见 项目基本配置 →:

文件 说明
app/Models/Base/Base.php 新建 — Model 全局基类,引入 ModelTrait
app/Http/Controllers/Controller.php 编辑 — 引入 ControllerTrait
bootstrap/app.php 编辑 — 中间件组 + 异常处理(最关键
routes/api.php 编辑 — 调用 RouterServices::Register()
tests/TestCase.php 编辑 — 引入 TestCaseTrait
.env 编辑 — 时区、语言、日志、数据库

第 2 步:配置 config/project.php

发布后编辑配置文件,按需调整(大部分保持默认即可):

第 3 步:构建缓存

工具包通过反射数据库和代码来工作,首次使用前需要构建缓存:

第 4 步:生成代码

第 5 步:查看 API 文档

启动项目后访问:

前端会自动从 /api/docs/openapi 获取 OpenAPI 规范并渲染。你可以看到所有接口的参数、响应示例和数据库表结构。

就这样! 一个完整的 CRUD 接口 + 在线文档就绪了。


项目配置详解

config/project.php 是本工具包的核心配置,控制代码生成行为、文档展示、权限校验等:

各配置项的详细说明见 项目基本配置。


详细文档

文档 说明
项目基本配置 安装后必做的 6 个基础文件配置(入门必读
Artisan 命令大全 缓存、代码生成、调试、工具命令
路由自动发现 目录约定、Controller 继承链、路由注册规则
Model 生成 三层继承模式(Base → BaseModel → Model)
代码生成 Controller、Enum、Migration、Test 生成
Builder 宏方法 条件查询、分页、排序等 13 个宏
Traits 工具集 ControllerTrait、EnumTrait、ModelTrait、TestCaseTrait
中间件 JsonWrapperMiddleware、CheckPermissionMiddleware、完整中间件组配置
辅助工具类 SchemaHelper、FastExcelHelper、AwsS3Helper 等
异常处理 ee() 全局函数、ExceptionRender 统一渲染
API 在线文档 OpenAPI 文档配置和使用
约定 数据库注释约定、DocBlock 注解约定
Docker 容器化部署 Supervisor 管理定时任务和队列
完整开发流程 从零到一开发新模块的推荐工作流
依赖说明 内置的 Laravel 生态包列表

License

MIT


All versions of laravel-dev with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
laravel/framework Version ^13.0
ext-json Version *
ext-pdo Version *
ext-bcmath Version *
mews/captcha Version ^3.4.8
mews/purifier Version ^3.4.4
orangehill/iseed Version ^3.8.0
kalnoy/nestedset Version ^7.0
league/flysystem-aws-s3-v3 Version ^3.28
rap2hpoutre/fast-excel Version ^5.7.0
spatie/laravel-permission Version ^7.0
spatie/eloquent-sortable Version ^5.0
spatie/laravel-tags Version ^4.11.0
vinkla/hashids Version ^14.0
jawira/plantuml-encoding Version ^1.1
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 yantico/laravel-dev contains the following files

Loading the files please wait ...