The sqlshim project aims to replicate Microsoft SQL Server Driver for PHP (sqlsrv) on Linux/OS X.
sqlshim was born out of the need for sqlsrv functions in OS X. It started as a short script with a small set of functions and has since evolved into a nearly full replacement for sqlsrv.
DISCLAIMER: sqlshim is in alpha and is geared primarily toward use in a development environment. It is provided as-is and without warranty. I will not be held responsible for any damage(s) incurred from its use.
Also, please note that despite its Mac origins, access to a proper Mac test environment has been limited (nonexistent) so I can't presently make any promises to Mac users.
sqlsrv_connect( ... );
- ???
- Profit!!
For more detailed documentation on sqlshim, please see the sqlshim wiki
See [wiki] for more detailed instructions.
composer require "radsectors/sqlshim:dev-master"
- Include autoloader.
require 'vendor/autoload.php';
- Download the latest release.
- Extract
src/sqlshim.php
andsrc/globals.php
to wherever you store your 3rd-party libraries. - Include
globals.php
.
require '/path/to/sqlshim.php';
require '/path/to/globals.php';
Please see wiki article.
Please see PHP.net's article on sqlsrv_connect()
Please see wiki article
See CONTRIBUTING.md for instructions on how to contribute.
You can hit me up on twitter @radsectors.
Please visit the project on GitHub to view outstanding issues.
sqlshim is licensed under the MIT license. See the LICENSE file for details.