PHPackages                             kozo/liberation - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. kozo/liberation

ActiveLibrary[Database &amp; ORM](/categories/database)

kozo/liberation
===============

It is a Laravel package for easy retrieval and execution of SQL files and more.

0.1(5y ago)011.8k1PHPPHP ^7.3|^8.0

Since Dec 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/kozo/liberation)[ Packagist](https://packagist.org/packages/kozo/liberation)[ RSS](/packages/kozo-liberation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

Liberation
==========

[](#liberation)

[![Scrutinizer code quality (GitHub/Bitbucket)](https://camo.githubusercontent.com/aba5b2a8e0805863998e947a24ed151cc39f99679bcfae23e5d3f3b808a97b94/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f6b6f7a6f2f6c696265726174696f6e3f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/kozo/liberation/)[![CircleCI](https://camo.githubusercontent.com/753720402edc3d7f76e40be3ee2dc5cc39786328aa252c319d1a31c60b2eee15/68747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f6275696c642f6769746875622f6b6f7a6f2f6c696265726174696f6e3f7374796c653d666c61742d737175617265)](https://app.circleci.com/pipelines/github/kozo/liberation)

install
-------

[](#install)

```
composer require kozo/liberation

```

usage
-----

[](#usage)

`Liberation::{fileType}('{fileName}')`

### example1

[](#example1)

```
// resources/sql/example.sql

select * from example

```

```
use Liberation\Liberation;

$sql = Liberation::sql('example');
$rows = DB::select($sql);
```

example2
--------

[](#example2)

```
// resources/sql/example.sql

select * from example

```

```
$rows = DB::query()->sql('example');
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1989d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/11993e1bc87ed0dd4a9c11b61907b373204de9af63971d97cceb3f6142c4aa2c?d=identicon)[saku](/maintainers/saku)

---

Top Contributors

[![kozo](https://avatars.githubusercontent.com/u/285535?v=4)](https://github.com/kozo "kozo (6 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/kozo-liberation/health.svg)

```
[![Health](https://phpackages.com/badges/kozo-liberation/health.svg)](https://phpackages.com/packages/kozo-liberation)
```

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[overtrue/laravel-versionable

Make Laravel model versionable.

585308.0k5](/packages/overtrue-laravel-versionable)[abbasudo/laravel-purity

elegant way to add filter and sort in laravel

514330.5k1](/packages/abbasudo-laravel-purity)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)[dragon-code/laravel-deploy-operations

Performing any actions during the deployment process

240173.5k2](/packages/dragon-code-laravel-deploy-operations)[stayallive/laravel-eloquent-observable

Register Eloquent model event listeners just-in-time directly from the model.

2928.9k7](/packages/stayallive-laravel-eloquent-observable)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
