aselsan/search 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

aselsan/search

Composer 安装命令:

composer require aselsan/search

包简介

Rapid Search for Codeigniter 4 framework

README 文档

README

Rapid Search for Codeigniter 4 framework

CodeIgniter PHP Version Require

Installation

composer require aselsan/search

Usage

use SearchTrait in your model, as follows:

<?php

namespace App\Models;

use CodeIgniter\Model;

class UserModel extends Model
{
    use SearchTrait; //Add this

    // Optional properties
    protected $search = ['first_name', 'last_name'];

Somewhere in your controller

$keyword = "jhon doe";

// Match any fields
model(UserModel::class)->search($keyword)->paginate();

// Match all fields
model(UserModel::class)->search($keyword)->paginate();

License

This project is licensed under the MIT License - see the LICENSE file for details.

统计信息

  • 总下载量: 66
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-10-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固