Download the PHP package izzuddinmohsin/neuron-sqlserver-toolkit without Composer

On this page you can find all versions of the php package izzuddinmohsin/neuron-sqlserver-toolkit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package neuron-sqlserver-toolkit

SQL Server Toolkit for Neuron AI

License: MIT PHP Version

A SQL Server / Azure SQL Database toolkit for Neuron AI — the PHP Agentic Framework. Gives your AI agents the ability to discover database schema, execute read queries, and perform write operations on SQL Server databases.

Adapted from Neuron AI's built-in MySQL Toolkit with full SQL Server compatibility, including schema-awareness, views discovery, positional parameters, and SQL Server-specific security hardening.

Features

Requirements

Installation

PDO SQL Server Driver Setup

Windows: Download Microsoft Drivers for PHP for SQL Server and enable in php.ini:

Linux (Ubuntu/Debian):

Quick Start

Laravel Integration

Note: Return the toolkit instance directly — the framework will bootstrap it internally and register the guidelines automatically. You don't need to call ->provide().

Usage

Discover All Tables and Views

Discover Specific Tables/Views Only

Exclude the Write Tool

If you want read-only access, use the toolkit's exclude() method:

Azure SQL Connection

SQL Server vs MySQL Differences

This toolkit handles the key differences between SQL Server and MySQL automatically. The LLM receives SQL Server-specific guidelines, but here's a reference:

Feature MySQL SQL Server
Limit rows LIMIT 10 TOP 10
Auto increment AUTO_INCREMENT IDENTITY(1,1)
Current datetime NOW() GETDATE()
String length LENGTH() LEN()
String concat CONCAT() or \|\| CONCAT() or +
Table quoting `table` | [table]
Boolean type BOOLEAN / TINYINT(1) BIT
Schema prefix Not required Required (e.g., dbo.table)
Parameters (PDO) Named (:name) Positional (?)
Last insert ID lastInsertId() SCOPE_IDENTITY()

Security

Read Tool (SQLServerSelectTool)

Status Statements
✅ Allowed SELECT, WITH (CTE)
❌ Blocked INSERT, UPDATE, DELETE, DROP, CREATE, ALTER, TRUNCATE, MERGE, EXEC, EXECUTE, sp_executesql, xp_cmdshell, OPENROWSET, OPENDATASOURCE, BULK, INTO

Write Tool (SQLServerWriteTool)

Status Statements
✅ Allowed INSERT, UPDATE, DELETE, MERGE
❌ Blocked DROP, CREATE, ALTER, GRANT, REVOKE, TRUNCATE, EXEC, EXECUTE, sp_executesql, xp_cmdshell, OPENROWSET, OPENDATASOURCE, BULK

Additional Security Measures

Toolkit Components

Tool Description
SQLServerSchemaTool Discovers database structure (tables, views, columns, relationships, indexes, constraints)
SQLServerSelectTool Executes read-only SELECT queries with positional parameters
SQLServerWriteTool Executes write operations (INSERT, UPDATE, DELETE, MERGE) with positional parameters

Troubleshooting

Error: "could not find driver"

Install the PDO SQL Server driver. See the Installation section.

Error: "Invalid object name"

Use schema-qualified table names: dbo.TableName instead of just TableName.

Error: "Login failed for user"

Verify your connection string and credentials. For Azure SQL, ensure your IP is allowed in the firewall rules.

Empty results from queries

An empty array [] is a valid result meaning no records matched. The toolkit instructs the LLM not to retry on empty results.

Connection timeout

Add timeout to your connection string:

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Credits

License

MIT License. See LICENSE for details.


All versions of neuron-sqlserver-toolkit with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
neuron-core/neuron-ai Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package izzuddinmohsin/neuron-sqlserver-toolkit contains the following files

Loading the files please wait ...