PHPackages                             ice-php/table - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. ice-php/table

ActiveComposer[Database &amp; ORM](/categories/database)

ice-php/table
=============

对数据库请求进行封装

066PHP

Since Dec 12Pushed 7y ago1 watchersCompare

[ Source](https://github.com/ice-php/table)[ Packagist](https://packagist.org/packages/ice-php/table)[ RSS](/packages/ice-php-table/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

table
=====

[](#table)

对数据库请求进行封装

此对象禁止实例化,使用单例模式
===============

[](#此对象禁止实例化使用单例模式)

instance() :SMysql

数据库连接对象
=======

[](#数据库连接对象)

connect(string $alias, string $mode = 'write'): PDO

获取数据库连接配置
=========

[](#获取数据库连接配置)

getConfig(): array

连接指定数据库
=======

[](#连接指定数据库)

connectDatabase(array $connectInfo): PDO

对某个表进行行锁定(默认写锁)
===============

[](#对某个表进行行锁定默认写锁)

lock(string $tableName, string $level): void

解除表锁定
=====

[](#解除表锁定)

unlock(string $tableName): void

判断是否是字段名
========

[](#判断是否是字段名)

isField(string $str): int

加上mysql字段定界符
============

[](#加上mysql字段定界符)

markField(string $str): string

把值进行处理,并加上定界符
=============

[](#把值进行处理并加上定界符)

markValue($value): string

将数组中每一个值,并加上定界符
===============

[](#将数组中每一个值并加上定界符)

markValueArray(array $values): array

对字段列表进行标准化
==========

[](#对字段列表进行标准化)

formatFields($fields): array

标准化字段列表,可以是各种输入格式
=================

[](#标准化字段列表可以是各种输入格式)

createFields($fields = null): string

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 90.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/148289317?v=4)[icePHP](/maintainers/icePHP)[@IcePHP](https://github.com/IcePHP)

---

Top Contributors

[![ice-php](https://avatars.githubusercontent.com/u/23303429?v=4)](https://github.com/ice-php "ice-php (29 commits)")[![halou7728](https://avatars.githubusercontent.com/u/16055715?v=4)](https://github.com/halou7728 "halou7728 (3 commits)")

### Embed Badge

![Health badge](/badges/ice-php-table/health.svg)

```
[![Health](https://phpackages.com/badges/ice-php-table/health.svg)](https://phpackages.com/packages/ice-php-table)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
