PHPackages                             furkifor/sql\_dumper - 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. furkifor/sql\_dumper

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

furkifor/sql\_dumper
====================

Laravel eloquent mantığıyla orm işlemlerinde sql çıktısı alma projesi

v0.2(1y ago)226MITPHPPHP ^7.2CI failing

Since Apr 28Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/FurkiFor/laravel-sql-dumper)[ Packagist](https://packagist.org/packages/furkifor/sql_dumper)[ Docs](https://github.com/furkifor/sql_dumper)[ GitHub Sponsors](https://github.com/FurkiFor)[ RSS](/packages/furkifor-sql-dumper/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (2)Dependencies (4)Versions (4)Used By (0)

SqlDumper Package
=================

[](#sqldumper-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/186b4eaa265ad4f8f7bab3a964ad0952a6b21e73da8ffc4e8bf03da86b029b7e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6675726b69666f722f73716c5f64756d7065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/furkifor/sql_dumper)[![GitHub Tests Action Status](https://camo.githubusercontent.com/1359b5feef1511e6b3010fb2c0e609ffc0896d10d67885f1f894bf4d565084da/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6675726b69666f722f73716c5f64756d7065722f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/furkifor/sql_dumper/actions?query=workflow%3ATests+branch%3Amaster)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/39ee96e5dfd01ef0afdaace9923ea71b752dd974574eafb61e5b65d008aa69b0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6675726b69666f722f73716c5f64756d7065722f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/furkifor/sql_dumper/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/ac83ed466dc2c0326f37982c62d00db4d2431c6f1b982bb0c239293074232def/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6675726b69666f722f73716c5f64756d7065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/furkifor/sql_dumper)

SQL query builder and database migration tool.

Installation
------------

[](#installation)

```
composer require furkifor/sql_dumper
```

SQL Query Builder Usage
-----------------------

[](#sql-query-builder-usage)

```
$sql_dumper = new Furkifor\SqlDumper("users");

// Simple query
echo $sql_dumper->select('*')->get();
// SELECT * FROM users

// Query with conditions
echo $sql_dumper->select('name, email')
    ->where('age > ?', [18])
    ->orderBy('name', 'DESC')
    ->limit(10)
    ->get();
// SELECT name, email FROM users WHERE age > ? ORDER BY name DESC LIMIT 10

// JOIN operations
echo $sql_dumper->select('users.*, roles.name as role_name')
    ->join('INNER', 'roles', 'users.role_id = roles.id')
    ->where('users.active = ?', [1])
    ->get();
// SELECT users.*, roles.name as role_name FROM users
// INNER JOIN roles ON users.role_id = roles.id WHERE users.active = ?

// Grouping and HAVING
echo $sql_dumper->select('country, COUNT(*) as user_count')
    ->groupBy('country')
    ->having('user_count > 100')
    ->get();
// SELECT country, COUNT(*) as user_count FROM users
// GROUP BY country HAVING user_count > 100
```

Migration Tool Usage
--------------------

[](#migration-tool-usage)

```
$table = new MigrateClass("mysql");

// Simple table creation
$table->name("users")
    ->string('username', 255)->unique()->notnull()
    ->string('email', 255)->unique()->notnull()
    ->string('password', 255)->notnull()
    ->datetime('created_at')->default("CURRENT_TIMESTAMP")
    ->createTable();

// Table with relationships
$table->name("posts")
    ->string('title', 255)->notnull()
    ->text('content')
    ->int('user_id')->notnull()
    ->foreignKey('user_id', 'users', 'id')
    ->datetime('published_at')->nullable()
    ->boolean('is_published')->default(0)
    ->createTable();

// Table with custom constraints
$table->name("products")
    ->string('name', 100)->notnull()
    ->decimal('price', 10, 2)->notnull()
    ->int('stock')->notnull()->default(0)
    ->check('price > 0')
    ->check('stock >= 0')
    ->createTable();
```

Features
--------

[](#features)

### SQL Query Builder

[](#sql-query-builder)

- CREATE SELECT queries
- WHERE conditions
- JOIN operations (INNER, LEFT, RIGHT)
- ORDER BY sorting
- GROUP BY grouping
- HAVING filtering
- LIMIT clause
- Parameter binding support
- DISTINCT queries

### Migration Tool

[](#migration-tool)

- Multiple database system support (MySQL, MongoDB, SQL Server)
- Support for all common data types
- Automatic ID/Primary Key generation
- Foreign Key relationships
- Unique constraints
- NOT NULL constraints
- DEFAULT values
- CHECK constraints

Contributing
------------

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Credits
-------

[](#credits)

- [Furkan Ünsal](https://github.com/FurkiFor)
- [All Contributors](../../contributors)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance52

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 82.8% 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 ~1218 days

Total

2

Last Release

627d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/32794698?v=4)[furkanunsal](/maintainers/furkanunsal)[@furkanunsal](https://github.com/furkanunsal)

---

Top Contributors

[![FurkiFor](https://avatars.githubusercontent.com/u/72503584?v=4)](https://github.com/FurkiFor "FurkiFor (24 commits)")[![furkanunsal5](https://avatars.githubusercontent.com/u/68552887?v=4)](https://github.com/furkanunsal5 "furkanunsal5 (5 commits)")

---

Tags

laravelmysqlphpsqlsqldumpFurkiForsql\_dumper

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/furkifor-sql-dumper/health.svg)

```
[![Health](https://phpackages.com/badges/furkifor-sql-dumper/health.svg)](https://phpackages.com/packages/furkifor-sql-dumper)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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