Download the PHP package lin-cms-tp/param-core without Composer

On this page you can find all versions of the php package lin-cms-tp/param-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 param-core

lin-cms-tp-validate-core

LinCms TP 的反射验证器核心类,含参数中间件封装,路由参数验证中间件,方法注释参数提取器,基于wangyu/reflex-core扩展

composer安装

默认参数

名称 注释 默认值
config('lin.validate_root_path') 验证器根目录 api/validate

反射参数验证

配置方法注释参数验证,有两种方式

使用 @validate 模型验证器

名称 注释 参数1
validate 验证器类验证定义 验证器类名:例如"application/api/validate/user/LoginForm",就写 LoginForm

这种方式只是为了完成某种特定的验证模型路径开发的,以/开头或者\\,都会当作验证器类的完整命名空间,不会再去目录下检测类是否存在

使用 @param 参数验证器

名称 注释 参数1 参数2 参数3
param 参数验证器定义 参数名称 参数注释 参数规则

'参数规则' 对应TP的验证规则,例如:@param('id','ID','require|max:1000|min:1')

联系我们


All versions of param-core with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
wangyu/reflex-core Version >=0.0.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 lin-cms-tp/param-core contains the following files

Loading the files please wait ....