nguemoue/laravel-dbobject

Projet qui va permettre de faire la migration des procédure, fonctions, triggers stocke de manière simple
1,069 1
Install
composer require nguemoue/laravel-dbobject
Latest Version:v1.1.0
PHP:^8.3|^8.4
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

pecee/pixie

Lightweight, fast query-builder for PHP based on Laravel Eloquent but with less...

37,649 42
absolutelydigital/medoo-laravel

Laravel Facade and ServiceProvider for The Lightest PHP database framework to ac...

57 3
illuminated/db-profiler

Database Profiler for Laravel Web and Console Applications.

245,120 169
repat/laravel-medoo

Laravel Facade and ServiceProvider for The Lightest PHP database framework to ac...

248 5
danielme85/laravel-log-to-db

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

1,077,153 133

Version History

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