PHPackages                             rstoetter/csql-php - 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. rstoetter/csql-php

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

rstoetter/csql-php
==================

class to manage SQL statements

v1.0.6(8y ago)0401MITPHP

Since Jun 30Pushed 8y agoCompare

[ Source](https://github.com/rstoetter/csql-php)[ Packagist](https://packagist.org/packages/rstoetter/csql-php)[ RSS](/packages/rstoetter-csql-php/feed)WikiDiscussions master Synced yesterday

READMEChangelog (7)DependenciesVersions (8)Used By (1)

csql-php
========

[](#csql-php)

The class cSQL is written in PHP and helps to manage SQL statement components.

The namespace is rstoetter\\cSql

static methods provided by the class cSQL
-----------------------------------------

[](#static-methods-provided-by-the-class-csql)

```
cSQL::AddFunction()
cSQL::CheckedFieldName()
cSQL::CombineFieldName()
cSQL::DotCount()
cSQL::FieldNameIn()
cSQL::FormatStatement()
cSQL::GetAliasFromTablename()
cSQL::GetAliasOrRealFieldname()
cSQL::GetRealFieldname()
cSQL::HasAlias()
cSQL::IsEscaped()
cSQL::IsExtraStartIdentifier()
cSQL::IsFunctionSQL()
cSQL::IsJoin()
cSQL::IsQualified()
cSQL::IsSqlZeroDate()
cSQL::IsSqlZeroDateTime()
cSQL::IsSqlZeroTime()
cSQL::IsSubquerySQL()
cSQL::IsSubqueryStatement()
cSQL::IsValidFieldName()
cSQL::PositionEndFunctionSQL()
cSQL::RemoveAlias()
cSQL::RemoveAll()
cSQL::RemoveEscapes()
cSQL::RemoveFunctions()
cSQL::RemoveQualification()
cSQL::SchemaNameIn()
cSQL::SetExtraIdentifier()
cSQL::SetExtraStartIdentifier()
cSQL::SplitQualifiedFieldname()
cSQL::SqlDate2DateTime()
cSQL::SqlDateTime2DateTime()
cSQL::SqlTime2DateTime()
cSQL::TableNameIn()

```

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

[](#installation)

This project assumes you have composer installed. Simply add:

```
"require" : {

    "rstoetter/csql-php" : ">=1.0.0"

}

```

to your composer.json, and then you can simply install with:

```
composer install

```

more information
----------------

[](#more-information)

See the [project wiki](https://github.com/rstoetter/csql-php/wiki) for more information.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity68

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

Recently: every ~83 days

Total

7

Last Release

2952d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24063757?v=4)[Rainer Stötter](/maintainers/rstoetter)[@rstoetter](https://github.com/rstoetter)

---

Top Contributors

[![rstoetter](https://avatars.githubusercontent.com/u/24063757?v=4)](https://github.com/rstoetter "rstoetter (13 commits)")

---

Tags

php5sqlphpsqlsql statement

### Embed Badge

![Health badge](/badges/rstoetter-csql-php/health.svg)

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

###  Alternatives

[clouddueling/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k23.1k](/packages/clouddueling-mysqldump-php)[friedolinfoerder/wp-activerecord

An ActiveRecord implementation for WordPress

237.6k](/packages/friedolinfoerder-wp-activerecord)

PHPackages © 2026

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