Skip to content

Latest commit

 

History

History
67 lines (46 loc) · 2.25 KB

README.md

File metadata and controls

67 lines (46 loc) · 2.25 KB

sql-to-builder

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

This package will help you convert from sql query to laravel query builder

Install

Via Composer

$ composer require big-shark/sql-to-builder

Usage

$builder = new \BigShark\SQLToBuilder\BuilderClass('SELECT a, b, c  FROM some_table WHERE d > 5');
echo $builder->convert();//"DB::table('some_table')->select('a', 'b', 'c')->where('d', '>', 5)->get()"

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

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