kozo / liberation
There is no license information available for the latest version (0.1) of this package.
It is a Laravel package for easy retrieval and execution of SQL files and more.
0.1
2020-12-06 08:11 UTC
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: 2026-02-06 20:50:28 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');