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.

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 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
Requires php Version >=5.5.9
topthink/think-orm Version ^2.0
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 syhcode/tp-model-filter contains the following files

Loading the files please wait ....