Download the PHP package syhcode/tp-model-filter without Composer
On this page you can find all versions of the php package syhcode/tp-model-filter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package tp-model-filter
说明
一个简单的基于thinkphp6的orm插件,thinkphp5可以自己尝试
不才,完全借鉴大神的代码,原项目地址: https://github.com/Tucker-Eric/EloquentFilter
使用
使用composer引入
composer require syhcode/tp-model-filter
在console.php中加入
'make:filter' => 'tpModelFilter\FilterCommond'
在模型中引用Filterable
使用命令行 think make:filter UsersFilter
创建filter文件,默认格式为"模型名+Filter" ,传参会过滤空参,自动转化为驼峰写法比如nick_name
会转化为nickName
,调用filter里面的nickName
方法,完全继承模型的方法
使用 filter
调用
All versions of tp-model-filter with dependencies
PHP Build Version
Package Version
The package syhcode/tp-model-filter contains the following files
Loading the files please wait ....