Download the PHP package daite/laravel-procedures without Composer
On this page you can find all versions of the php package daite/laravel-procedures. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download daite/laravel-procedures
More information about daite/laravel-procedures
Files in daite/laravel-procedures
Package laravel-procedures
Short Description Execute allowlisted SQL Server stored procedures safely from Laravel applications.
License MIT
Homepage https://github.com/DAITESISTEM/laravel-procedures
Informations about the package laravel-procedures
Laravel Procedures
Execute allowlisted SQL Server stored procedures from Laravel with bound parameters, validated identifiers, configurable connections and explicit return types.
Requirements
- PHP 8.2+
- Laravel 11, 12, or 13
- A SQL Server connection configured in Laravel
Installation
Configure the published config/procedures.php file:
Only procedures listed in allowed can be executed.
Selecting rows
Inject the executor contract into your service:
Executing statements
Use statement() for procedures without a result set:
Connection and schema overrides
Both values can be overridden per call:
Only pass trusted application values as schema and connection overrides. Schema identifiers are validated, but connection names select configuration from the consuming Laravel application.
Compatibility trait
Applications using the original payload API can migrate with:
The payload accepts procedure, fields, schema, and return_data:
ExecuteProcedureTrait remains available as a deprecated alias for projects
using the historical trait name. Database failures throw
ProcedureExecutionException; they are not converted to empty results.
Procedure fields helper
Some stored procedures expect separate comma-delimited campos and valores
strings:
Result:
The helper accepts scalar, null, and stringable values. It preserves input
order, converts null to an empty value, converts booleans to 1/0, and
removes commas inside values to preserve the delimited contract. Arrays and
non-stringable objects are rejected. The historical buildJsonFields() method
remains as a deprecated alias.
Error handling
Invalid or disallowed procedure calls throw InvalidProcedureException.
Database failures throw ProcedureExecutionException and preserve the driver
exception as the previous exception.
Security
- Procedure names require an explicit allowlist entry.
- Schema, procedure, and parameter names accept only safe identifier characters.
- Parameter values always use database bindings.
- Package logs never include parameter values.
- The underlying database driver exception may contain SQL or bindings when logged by the consuming application. Configure application logging according to its data-sensitivity requirements.
Testing
License
Laravel Procedures is open-source software licensed under the MIT license.
All versions of laravel-procedures with dependencies
illuminate/contracts Version ^11.0|^12.0|^13.0
illuminate/database Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
psr/log Version ^3.0