PHPackages                             shiyan/lite-sql-insert - 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. shiyan/lite-sql-insert

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

shiyan/lite-sql-insert
======================

Lightweight SQL insertion service.

3.0.0(8y ago)0281MITPHPPHP ^7.1

Since Nov 8Pushed 7y ago1 watchersCompare

[ Source](https://github.com/mikeshiyan/lite-sql-insert)[ Packagist](https://packagist.org/packages/shiyan/lite-sql-insert)[ RSS](/packages/shiyan-lite-sql-insert/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (9)Used By (1)

Lite SQL Insert
===============

[](#lite-sql-insert)

[![Build Status](https://camo.githubusercontent.com/0e3b80b0d8f2d3552430b54cf07a6bc68e02a041a97d3a4fd6636daf4d2f53f5/68747470733a2f2f7472617669732d63692e6f72672f6d696b6573686979616e2f6c6974652d73716c2d696e736572742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mikeshiyan/lite-sql-insert)

Very lightweight PHP service class for SQL INSERT queries abstraction.

Best suited for use as a [Composer](https://getcomposer.org) library.

Requirements
------------

[](#requirements)

- PHP &gt;= 7.1
- PDO extension

Installation
------------

[](#installation)

To add this library to your Composer project:

```
composer require shiyan/lite-sql-insert

```

Usage
-----

[](#usage)

```
$connection = new \Shiyan\LiteSqlInsert\Connection($pdo);
$insert = $connection->insert('my_table', ['name', 'value']);

foreach ($my_data as $name => $value) {
  $insert->values(['name' => $name, 'value' => $value]);
}

$insert->commit();

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~24 days

Recently: every ~33 days

Total

8

Last Release

2941d ago

Major Versions

0.1.0 → 1.0.02017-11-12

1.0.0 → 2.0.02017-11-23

2.x-dev → 3.0.0-beta2018-04-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/0eef0320768b8d176b9014442390bfa3bfec9369cba3b9e663a66dac57ac0084?d=identicon)[mikeshiyan](/maintainers/mikeshiyan)

---

Top Contributors

[![mikeshiyan](https://avatars.githubusercontent.com/u/3637657?v=4)](https://github.com/mikeshiyan "mikeshiyan (1 commits)")

---

Tags

composerinsertliteooppdophpsqlphpsqlpdoliteOOPinsert

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/shiyan-lite-sql-insert/health.svg)

```
[![Health](https://phpackages.com/badges/shiyan-lite-sql-insert/health.svg)](https://phpackages.com/packages/shiyan-lite-sql-insert)
```

###  Alternatives

[ifsnop/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k5.5M69](/packages/ifsnop-mysqldump-php)[aura/sqlquery

Object-oriented query builders for MySQL, Postgres, SQLite, and SQLServer; can be used with any database connection library.

4572.9M34](/packages/aura-sqlquery)[clouddueling/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k22.9k](/packages/clouddueling-mysqldump-php)[atlas/query

Object-oriented query builders and performers for MySQL, Postgres, SQLite, and SQLServer.

41249.0k7](/packages/atlas-query)

PHPackages © 2026

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