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

This package is auto-updated.

Last update: 2024-04-06 17:00:29 UTC


README

Scrutinizer code quality (GitHub/Bitbucket) CircleCI

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');