michael-rubel / laravel-sql-function-repository
It is an example template for Laravel packages. Fill or change it the way you like.
Fund package maintenance!
paypal.me/observername
Installs: 1 041
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: ^8.0
- illuminate/contracts: ^9.0|^10.0
- spatie/laravel-package-tools: ^1.11
Requires (Dev)
- brianium/paratest: ^6.3
- mockery/mockery: ^1.4.4
- nunomaduro/collision: ^6.0
- nunomaduro/larastan: ^2.0
- orchestra/testbench: ^7.0|^8.0
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-03-15 19:40:28 UTC
README
Laravel SQL Function Repository
This package provides a repository class to run SQL functions available in the database.
Currently, only PostgreSQL
database is supported, but if you want to add support for your database, contributions are welcomed.
The package requires PHP 8
or higher and Laravel 9
or higher.
#StandWithUkraine
Installation
Install the package using composer:
composer require michael-rubel/laravel-sql-function-repository
Publish the config, set up basic connection and select:
php artisan vendor:publish --tag="sql-function-repository-config"
Usage
$repository = app(SqlFunctionRepository::class); $repository->runDatabaseFunction('yourFunctionName', [ 'functionParameter1', 'functionParameter2', ]);
Testing
composer test
License
The MIT License (MIT). Please see License File for more information.