kozo / liberation
It is a Laravel package for easy retrieval and execution of SQL files and more.
Installs: 11 595
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: ^7.3|^8.0
- laravel/framework: ^7.0|^8.0
Requires (Dev)
- orchestra/testbench: ^5.0|^6.0
- phpunit/phpunit: ^8.4
- squizlabs/php_codesniffer: 3.*
This package is auto-updated.
Last update: 2024-11-06 18:08:34 UTC
README
install
composer require kozo/liberation
usage
Liberation::{fileType}('{fileName}')
example1
// resources/sql/example.sql
select * from example
use Liberation\Liberation; $sql = Liberation::sql('example'); $rows = DB::select($sql);
example2
// resources/sql/example.sql
select * from example
$rows = DB::query()->sql('example');