Download the PHP package landao/webman-core without Composer

On this page you can find all versions of the php package landao/webman-core. 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 webman-core

landao/webman-core 使用指南

1、环境和安装

1.1. 环境要求

2、注解使用

2.1. 路由注解

Tips: 需要 plugin.landao.webman-core.app.annotation.route.enable 开启 和 plugin.landao.webman-core.app.annotation.route.directories 扫描路径,否则将被排除扫描

2.2 验证器

2.2.1. 使用Validation注解快速开启一个验证器

2.2.1. 创建验证器类

不支持 unique、exists 等

3 数据迁移

3.1. 生成数据迁移文件

3.2. 执行数据迁移

3.3. 执行数据回滚迁移

4、数据填充

4.1. 生成数据填充文件

Tips: 首次使用seeder,请手动创建 DatabaseSeeder 基础数据填充类

4.2.执行数据填充

5、命令生成文件

5.1 生成枚举文件

生成枚举类名自动追加后缀 Enum

5.2 生成 Repository

注意:该命令会附带生成对应的 Model,生成类名自动追加后缀 Repo

5.3 生成 Model

注意:该命令生成类名自动追加后缀 Model

5.4 生成验证器

注意:该命令生成类名自动追加后缀 Request,注解使用:#[Validation(class: UserRequest::class)]

6、Exception 异常

6.1 异常接管

配置 config/exception.php 插件配置,例如:/plugin/system/config/exception.php

6.2 输出错误信息

配置 config/app.php 开启调试模式

不开启调试,返回

6.3 自定义业务错误码

返回数据

6.4 统一业务异常处理,api直接返回

异常枚举定义

替换消息中的占位符,支持 {} 或 {0}, {1} 等格式

抛出异常使用例子

7、枚举注解、枚举转换

方法:

8、注解脱敏


All versions of webman-core with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-bcmath Version *
ext-openssl Version *
ext-json Version *
webman/console Version ^2.1
webman/database Version ^2.1
webman/redis Version ^2.1
webman/cache Version ^2.1
illuminate/pagination Version ^10.0 || ^11.0 || ^12.0
illuminate/events Version ^10.0 || ^11.0 || ^12.0
illuminate/validation Version ^10.0 || ^11.0 || ^12.0
symfony/var-dumper Version ^7.2
symfony/finder Version ^7.2
guzzlehttp/guzzle Version ^7.9
tinywan/jwt Version ^1.2
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 landao/webman-core contains the following files

Loading the files please wait ...