PHPackages                             tina4stack/tina4php-mssql - 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. tina4stack/tina4php-mssql

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

tina4stack/tina4php-mssql
=========================

Tina4 PHP MSSQL Database Driver

v2.0.6(3mo ago)2962MITPHPPHP &gt;=8.1CI failing

Since Jul 19Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/tina4stack/tina4php-mssql)[ Packagist](https://packagist.org/packages/tina4stack/tina4php-mssql)[ RSS](/packages/tina4stack-tina4php-mssql/feed)WikiDiscussions main Synced today

READMEChangelog (6)Dependencies (10)Versions (8)Used By (0)

tina4php-mssql
==============

[](#tina4php-mssql)

MSSQL database driver for the Tina4 PHP framework.

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

[](#installation)

```
composer require tina4stack/tina4php-mssql
```

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

[](#requirements)

- PHP &gt;= 8.1
- ext-sqlsrv
- tina4stack/tina4php-database ^2.0

Usage
-----

[](#usage)

```
// Connection format: host/port:database
$DBA = new \Tina4\DataMSSQL("localhost/1433:database", "sa", "password");

// Execute queries
$DBA->exec("create table users (id integer primary key, name varchar(200))");
$DBA->commit();

// Insert with parameters
$DBA->exec("insert into users (id, name) values (?, ?)", 1, "Alice");

// Fetch records
$result = $DBA->fetch("select * from users");
$records = $result->asArray();

// Fetch with limit and offset
$result = $DBA->fetch("select * from users", 10, 0);

// Fetch single record
$record = $DBA->fetchOne("select * from users where id = 1");

// Check if table exists
$exists = $DBA->tableExists("users");

// Get database metadata
$metadata = $DBA->getDatabase();
```

Testing
-------

[](#testing)

```
docker compose up -d
composer test
```

License
-------

[](#license)

MIT - see [LICENSE](LICENSE)

---

Our Sponsors
------------

[](#our-sponsors)

**Sponsored with 🩵 by Code Infinity**

[![Code Infinity](https://camo.githubusercontent.com/1516fb1662e3486bce77822177a5ea199edc32ea109369812592ec9bca38159a/68747470733a2f2f636f6465696e66696e6974792e636f2e7a612f77702d636f6e74656e742f75706c6f6164732f323032352f30392f6338652d6c6f676f2d6769746875622e706e67)](https://codeinfinity.co.za/about-open-source-policy?utm_source=github&utm_medium=website&utm_campaign=opensource_campaign&utm_id=opensource)

*Supporting open source communities • Innovate • Code • Empower*

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance79

Regular maintenance activity

Popularity14

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 65.5% 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 ~222 days

Recently: every ~297 days

Total

7

Last Release

110d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/82961293?v=4)[Tina4](/maintainers/tina4stack)[@tina4stack](https://github.com/tina4stack)

---

Top Contributors

[![andrevanzuydam](https://avatars.githubusercontent.com/u/6102941?v=4)](https://github.com/andrevanzuydam "andrevanzuydam (19 commits)")[![justin-k-bruce](https://avatars.githubusercontent.com/u/22364123?v=4)](https://github.com/justin-k-bruce "justin-k-bruce (9 commits)")[![jacquestvanzuydam](https://avatars.githubusercontent.com/u/2675042?v=4)](https://github.com/jacquestvanzuydam "jacquestvanzuydam (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/tina4stack-tina4php-mssql/health.svg)

```
[![Health](https://phpackages.com/badges/tina4stack-tina4php-mssql/health.svg)](https://phpackages.com/packages/tina4stack-tina4php-mssql)
```

###  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)[tina4stack/tina4php

Tina4 for PHP — 54 built-in features, zero dependencies

2810.6k9](/packages/tina4stack-tina4php)[andrevanzuydam/tina4php

Tina4 for PHP — 54 built-in features, zero dependencies

272.4k](/packages/andrevanzuydam-tina4php)

PHPackages © 2026

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