PHPackages                             pedrosoares/sqlfileloader - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. pedrosoares/sqlfileloader

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pedrosoares/sqlfileloader
=========================

Manipulate SQL files.

1.0.2(9y ago)015MITPHPPHP &gt;=5.5.9

Since Nov 23Pushed 7y ago1 watchersCompare

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

READMEChangelog (2)DependenciesVersions (4)Used By (0)

SqlFileLoader
=============

[](#sqlfileloader)

Read the SQL file, remove all comments, and separate each command for manipulation.

Instation
=========

[](#instation)

Put in your composer file the command bellow.

```
"pedrosoares/sqlfileloader": "1.0.*"

```

The field "require" shoud be like:

```
"require": {
    "php": ">=5.5.9",
    "laravel/framework": "5.1.*",
    "pedrosoares/sqlfileloader": "1.0.*"
}

```

How use
=======

[](#how-use)

To load a file and get all sql commands, you can do in this way:

```
$c = new SqlFileLoader("PATH to the sql file");
foreach($c->getStatements() as $sqlCommand){
    DB::statement($sqlCommand);
}

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Every ~0 days

Total

3

Last Release

3453d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4f448ab89edcd0002562248cc4f792cfe0084f1623c27b08606955f157c14611?d=identicon)[pedrosoares](/maintainers/pedrosoares)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/pedrosoares-sqlfileloader/health.svg)

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

###  Alternatives

[paulredmond/html-to-amp

A PHP Library to Convert HTML to AMP HTML

6826.0k](/packages/paulredmond-html-to-amp)[mageprince/module-buynow

Magento2 Buy Now Module

829.7k](/packages/mageprince-module-buynow)[netzmacht/php-leaflet

PHP leaflet definition and javascript generator

1927.2k2](/packages/netzmacht-php-leaflet)[edofre/laravel-fullcalendar-scheduler

Laravel component for fullcalendar scheduler module

251.5k](/packages/edofre-laravel-fullcalendar-scheduler)

PHPackages © 2026

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