PHPackages                             micayael/native-query-from-file-builder-bundle - 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. micayael/native-query-from-file-builder-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

micayael/native-query-from-file-builder-bundle
==============================================

Bundle for execute native queries from yaml files

2.0.6(2y ago)07.1k↓50%MITPHPPHP ^7.2|^8.0

Since Aug 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/micayael/native-query-from-file-builder-bundle)[ Packagist](https://packagist.org/packages/micayael/native-query-from-file-builder-bundle)[ RSS](/packages/micayael-native-query-from-file-builder-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (14)Versions (13)Used By (0)

NativeQueryFromFileBuilderBundle
================================

[](#nativequeryfromfilebuilderbundle)

[![github action sf54](https://github.com/micayael/native-query-from-file-builder-bundle/actions/workflows/symfony54.yml/badge.svg)](https://github.com/micayael/native-query-from-file-builder-bundle/actions/workflows/symfony54.yml/badge.svg)[![github action sf6](https://github.com/micayael/native-query-from-file-builder-bundle/actions/workflows/symfony6.yml/badge.svg)](https://github.com/micayael/native-query-from-file-builder-bundle/actions/workflows/symfony6.yml/badge.svg)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/59f850de88b723d6bed27ca1bbde0b9fe5cd413fb4d24f306d62323c55d70db4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d6963617961656c2f6e61746976652d71756572792d66726f6d2d66696c652d6275696c6465722d62756e646c652f6261646765732f7175616c6974792d73636f72652e706e67)](https://scrutinizer-ci.com/g/micayael/native-query-from-file-builder-bundle/)[![StyleCI](https://camo.githubusercontent.com/159cc70d63c555214879c15c5c13d75d746fb715ae8feda69641d51cd65f4e35/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3134323335343430362f736869656c643f7374796c653d666c6174)](https://github.styleci.io/repos/142354406)[![Packagist](https://camo.githubusercontent.com/aedcddd0cbe91e558dcc85c9abba0a6d948ece96f5de9e9c9c61fd226adacc88/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6963617961656c2f6e61746976652d71756572792d66726f6d2d66696c652d6275696c6465722d62756e646c652e737667)](https://packagist.org/packages/micayael/native-query-from-file-builder-bundle)[![License](https://camo.githubusercontent.com/035d8dbddd20aeb5f3d530ff33998c7e025167ccd815f4fa392c0a5cf841909f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d6963617961656c2f6e61746976652d71756572792d66726f6d2d66696c652d6275696c6465722d62756e646c652e737667)](https://camo.githubusercontent.com/035d8dbddd20aeb5f3d530ff33998c7e025167ccd815f4fa392c0a5cf841909f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d6963617961656c2f6e61746976652d71756572792d66726f6d2d66696c652d6275696c6465722d62756e646c652e737667)[![Latest Stable Version](https://camo.githubusercontent.com/58ccee638d12936f2fd1d37706611a9cdae5d117251d6985fa9e15cd783ffbb9/68747470733a2f2f706f7365722e707567782e6f72672f6d6963617961656c2f6e61746976652d71756572792d66726f6d2d66696c652d6275696c6465722d62756e646c652f762f737461626c65)](https://packagist.org/packages/micayael/native-query-from-file-builder-bundle)[![Total Downloads](https://camo.githubusercontent.com/65a1f987d01a1d2e531ff1269cc937dbdb07d3eada117f6b6b01fed6b7660ded/68747470733a2f2f706f7365722e707567782e6f72672f6d6963617961656c2f6e61746976652d71756572792d66726f6d2d66696c652d6275696c6465722d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/micayael/native-query-from-file-builder-bundle)[![PHP from Packagist](https://camo.githubusercontent.com/c729ae7bc121e6191a54f3ff0e3f87766db504b1e65aec2bd28e988ae4c854db/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d6963617961656c2f6e61746976652d71756572792d66726f6d2d66696c652d6275696c6465722d62756e646c652e737667)](https://packagist.org/packages/micayael/native-query-from-file-builder-bundle)

This bundle let you write your SQL SELECT sentences into yaml files for better organization and then execute them within the application

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

[](#installation)

### Applications that use Symfony Flex

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

- Symfony &lt;5.4

```
$ composer require micayael/native-query-from-file-builder-bundle
```

- Symfony &gt;=5.4

```
$ composer require micayael/native-query-from-file-builder-bundle:~2.0
```

### Applications that don't use Symfony Flex

[](#applications-that-dont-use-symfony-flex)

#### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

- Symfony &lt;5.4

```
$ composer require micayael/native-query-from-file-builder-bundle
```

- Symfony &gt;=5.4

```
$ composer require micayael/native-query-from-file-builder-bundle:~2.0
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

#### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `app/AppKernel.php` file of your project:

```
