PHP Classes

PHP SQLSRV Linux: Access Microsoft SQL Server databases in Linux

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 55 All time: 10,593 This week: 67Up
Version License PHP version Categories
sqlshim 1.0.0Custom (specified...5PHP 5, Databases
Description 

Author

This package can be used to access Microsoft SQL Server databases in Linux.

It provides a class that can access Microsoft SQL server databases using PDO dblib driver.

The package also provides global functions that wrap around the class that emulate functions of the sqlsrv PHP extension that is available on Windows.

Innovation Award
PHP Programming Innovation award nominee
January 2021
Number 6


Prize: One official elePHPant Plush Mascott
The Microsoft SQL Server is a popular database server often used by many companies that prefer to use Microsoft based products.

The sqlsrv PHP extension is the usual means to access a Microsoft SQL Server database under Windows. However this extension does not exist for the Linux operating system.

This package provides a solution based dblib driver for the PDO extension to access Microsoft SQL Server databases from a Linux installation.

It also provides functions that emulate the sqlsrv extension functions on Linux, so the same PHP application code can run either in Windows and Linux.

Manuel Lemos
Picture of Owen Hester
  Performance   Level  
Name: Owen Hester <contact>
Classes: 2 packages by
Country: United States United States
Age: 40
All time rank: 4316548 in United States United States
Week rank: 197 Up20 in United States United States Up
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

Documentation

sqlshim &bull; sqlsrv for Linux/OS X

sqlshim replicates sqlsrv (Microsoft SQL Server Driver for PHP) functionality on Linux/OS X.

It began as a small set of spoofed sqlsrv functions and has since evolved into a full-on sqlsrv replacement.

It is currently in alpha and is primarily intended for use in dev environments or non-mission-critical applications. But I can't tell you what to do.

Getting Started

  1. `$ composer require "radsectors/sqlshim:dev-master"`
  2. `<?php require 'vendor/autoload.php';`
  3. ???
  4. _Profit!_

See the wiki for more detailed documentation and support.

Contributing

See CONTRIBUTING.md for contribution info.

? sqlshim? Send ?!

License

See LICENSE for license info.


  Files folder image Files (15)  
File Role Description
Files folder image.vscode (3 files)
Files folder imagesrc (2 files)
Files folder imagetests (3 files)
Accessible without login Plain text file .markdownlint.json Data Auxiliary data
Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file CONTRIBUTING.md Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (15)  /  .vscode  
File Role Description
  Accessible without login Plain text file launch.json Data Auxiliary data
  Accessible without login Plain text file settings.json Data Auxiliary data
  Accessible without login Plain text file tasks.json Data Auxiliary data

  Files folder image Files (15)  /  src  
File Role Description
  Accessible without login Plain text file globals.php Aux. sqlsrv wrapper functions
  Plain text file sqlshim.php Class Class source

  Files folder image Files (15)  /  tests  
File Role Description
  Accessible without login Plain text file bootstrap.php Aux. Auxiliary script
  Accessible without login Plain text file config-sample.php Aux. Auxiliary script
  Plain text file GeneralTest.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:55
This week:0
All time:10,593
This week:67Up