PHPackages                             noresources/ns-php-sql - 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. noresources/ns-php-sql

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

noresources/ns-php-sql
======================

SQL-related class library for PHP

v1.1.2(5y ago)041MITPHPPHP &gt;= 5.3

Since Oct 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/noresources/ns-php-sql)[ Packagist](https://packagist.org/packages/noresources/ns-php-sql)[ RSS](/packages/noresources-ns-php-sql/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (32)Used By (0)

ns-php-sql
==========

[](#ns-php-sql)

*THIS PROJECT IS ABANDONED*. See reasons bolow.

SQL abstraction layer for SQL engine and SQL language dialects.

Features
========

[](#features)

- Data structure description
- Abstract schemal oadable from XML schema
- Automatic DMBS type mapping
- DBMS Data structure manipulation and query
- Retrieve data structure description from DBMS
- Create DBMS structure from abstract data structure
- Add, remove or modify existing DBMS structure
- Update DBMS structure from differences with abstract data structure description
- SQL statement building
    - Easy and powerful DBMS-independent statement building using literal expression and/or polish notation
    - Accurate translation to DBMS dialect
    - Automatic value formatting according table column properties
- DBMS drivers
    - Prepare statements
    - Execute statement with/without parameters
    - Automatic column value deserialization of query results
- Native support of common DBMS
    - SQLite
    - PostgreSQL
    - MySQL/MariaDB
    - PDO (less accurate)

Reason for abandoning this project
==================================

[](#reason-for-abandoning-this-project)

`ns-php-sql` 2.0 was started to provide a clean, elegant, simple but powerful abstraction layer over the common DBMS systems. I was not satisfied by the API and/or internal design of the most popular existing projects.

After three years of peaceful development, I came to the conclusion that I will not be able to spend enough time to achieve my goals. The number of compromise, tweaks and hacks required to have a decent unified solution for "only" three different systems is astonishing. DBMS internal constraints and SQL dialects differ so much that implementing a single feature could lead to a never ending story.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

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 ~23 days

Recently: every ~53 days

Total

29

Last Release

1421d ago

Major Versions

v1.1.2 → v2.0.0-alpha.6.22021-04-18

PHP version history (3 changes)v2.0.0-alpha.1PHP &gt;= 5.5

v2.0.0-alpha.2PHP &gt;= 5.6

v1.1.2PHP &gt;= 5.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/74b6302d665dc6bee0c92caf49bb2d6a9c9d068203e7e7b034f3bca90bda6636?d=identicon)[noresources](/maintainers/noresources)

---

Top Contributors

[![noresources](https://avatars.githubusercontent.com/u/4061622?v=4)](https://github.com/noresources "noresources (692 commits)")

### Embed Badge

![Health badge](/badges/noresources-ns-php-sql/health.svg)

```
[![Health](https://phpackages.com/badges/noresources-ns-php-sql/health.svg)](https://phpackages.com/packages/noresources-ns-php-sql)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M117](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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