New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

nguemoue/laravel-dbobject

Projet qui va permettre de faire la migration des procédure, fonctions, triggers stocke de manière simple
3,309 1
Install
composer require nguemoue/laravel-dbobject
Latest Version:v1.1.0
PHP:^8.3|^8.4
Laravel:10 – 13
License:MIT
Last Updated:Apr 14, 2026
Links: GitHub  ·  Packagist
Maintainer: Nguemoue

Laravel DbObject

Laravel DbObject is a Laravel package for managing SQL stored objects (Functions, Procedures, Views, Triggers) as pure SQL files. It seamlessly integrates with your migration workflow, supporting multiple database drivers with a unified configuration system.

Latest Version on Packagist Tests


✨ Features

  • Pure SQL: Write standard SQL. No custom macros, no YAML front-matter.
  • Driver Agnostic: Unifies behavior across MySQL, PostgreSQL, SQL Server, and SQLite.
  • Splitter Strategies: Handles BEGIN...END blocks and GO batches automatically.
  • Zero Config: Works out of the box with sensible defaults for each driver.
  • Versioning: Tracks object migrations just like Laravel's schema migrations.

📖 Documentation

The full documentation is available in the docs/ folder or via Mintlify.

🚀 Installation

composer require nguemoue/laravel-dbobject

🛠 Quick Start

  1. Create an Object:

    php artisan dbo:make my_procedure --type=procedure
    
  2. Migrate:

    php artisan dbo:migrate
    

🔌 Driver Support

Driver Transactional Default Splitter On Exists
MySQL false mysql_delimiter recreate
PostgreSQL true none replace
SQL Server true go_batch recreate
SQLite true none recreate

🤝 Contributing

Please see CONTRIBUTING for details.

📄 License

The MIT License (MIT). Please see License File for more information.

Related Packages

crysalead/sql-dialect

SQL query builder.

13,238 6
usmanhalalit/pixie

A lightweight, expressive, framework agnostic query builder for PHP.

2,314,856 674
yadakhov/insert-on-duplicate-key

A trait for MySQL INSERT ON DUPLICATE KEY UPDATE.

3,117,053 275
danielme85/laravel-log-to-db

Custom Laravel Log channel handler that can store log events to SQL or MongoDB d...

1,097,876 133

Version History

Version Released PHP License
v1.1.0 ^8.3|^8.4 MIT