Download the PHP package zjkiza/sql-twig-bundle without Composer
On this page you can find all versions of the php package zjkiza/sql-twig-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download zjkiza/sql-twig-bundle
More information about zjkiza/sql-twig-bundle
Files in zjkiza/sql-twig-bundle
Download zjkiza/sql-twig-bundle
More information about zjkiza/sql-twig-bundle
Files in zjkiza/sql-twig-bundle
Vendor zjkiza
Package sql-twig-bundle
Short Description The bundle executes raw SQL queries with the flexibility to embed Twig extensions, enabling the dynamic creation of queries using Twig syntax.
License MIT
Package sql-twig-bundle
Short Description The bundle executes raw SQL queries with the flexibility to embed Twig extensions, enabling the dynamic creation of queries using Twig syntax.
License MIT
Please rate this library. Is it a good library?
Informations about the package sql-twig-bundle
Sql Twig Bundle
The bundle executes raw SQL queries with the flexibility to embed Twig extensions, enabling the dynamic creation of queries using Twig syntax.
About the bundle
- You can use Twig syntax when creating queries.
- You place queries in separate files. (Ex: all_media.sql.twig).
- Execute your queries using
Zjk\SqlTwig\Contract\SqlTwigInterface
service. - Result of execution
Zjk\SqlTwig\Contract\SqlTwigInterface->executeQuery(..)
is instance of Doctrine\DBAL\Driver\Result, use their methods to get results. - Query execution via transaction
Zjk\SqlTwig\Contract\SqlTwigInterface->transaction(..)
Installation
Add "zjkiza/sql-twig-bundle" to your composer.json file:
Symfony integration
Bundle wires up all classes together and provides method to easily setup.
- Register bundle within your configuration (i.e:
bundles.php
).
Working with the bundle
It is necessary to define which directory/directories will be used for storing files with sql queries.
Create a sql query. Example (all_media.sql.twig
):
Working in php, Example:
All versions of sql-twig-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
twig/twig Version ^2.0|^3.0
doctrine/dbal Version ^2.0|^3.0|^4.0
symfony/config Version ^4.0|^5.0|^6.0|^7.0
symfony/dependency-injection Version ^4.0|^5.0|^6.0|^7.0
symfony/http-kernel Version ^4.0|^5.0|^6.0|^7.0
symfony/twig-bundle Version ^4.0|^5.0|^6.0|^7.0
twig/twig Version ^2.0|^3.0
doctrine/dbal Version ^2.0|^3.0|^4.0
symfony/config Version ^4.0|^5.0|^6.0|^7.0
symfony/dependency-injection Version ^4.0|^5.0|^6.0|^7.0
symfony/http-kernel Version ^4.0|^5.0|^6.0|^7.0
symfony/twig-bundle Version ^4.0|^5.0|^6.0|^7.0
The package zjkiza/sql-twig-bundle contains the following files
Loading the files please wait ....