Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 15, 2024 via composer

symfony/twig-bundle v7.0.3

Provides a tight integration of Twig into the Symfony full-stack framework
Package summary
Share
0
issues
2
licenses
23
MIT
1
BSD-3-Clause
Package created
18 Nov 2011
Version published
23 Jan 2024
Maintainers
1
Total deps
24
Direct deps
6
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
23 Packages, Including:
psr/container@2.0.2
psr/event-dispatcher@1.0.0
psr/log@3.0.0
symfony/config@v7.0.7
symfony/dependency-injection@v7.0.7
symfony/deprecation-contracts@v3.5.0
symfony/error-handler@v7.0.7
symfony/event-dispatcher@v7.0.7
symfony/event-dispatcher-contracts@v3.5.0
symfony/filesystem@v7.0.7
symfony/http-foundation@v7.0.7
symfony/http-kernel@v7.0.7
symfony/polyfill-ctype@v1.29.0
symfony/polyfill-mbstring@v1.29.0
symfony/polyfill-php80@v1.29.0
symfony/polyfill-php83@v1.29.0
symfony/process@v7.0.7
symfony/service-contracts@v3.5.0
symfony/translation-contracts@v3.5.0
symfony/twig-bridge@v7.0.7
symfony/twig-bundle@v7.0.3
symfony/var-dumper@v7.0.7
symfony/var-exporter@v7.0.7

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
twig/twig@v3.10.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

6
All Dependencies CSV
β“˜ This is a list of symfony/twig-bundle 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
symfony/configv7.0.7-MIT
prod dev
symfony/dependency-injectionv7.0.7-MIT
prod dev
symfony/http-foundationv7.0.7-MIT
prod dev
symfony/http-kernelv7.0.7-MIT
prod dev
symfony/twig-bridgev7.0.7-MIT
prod
twig/twigv3.10.2-BSD-3-Clause
prod dev

Visualizations

Frequently Asked Questions

What does symfony/twig-bundle do?

The Symfony/Twig-Bundle provides a close-knit integration of the Twig template engine into the Symfony full-stack framework. This effectively offers an easy and efficient method for developers to define dynamic content in their Symfony applications, utilizing the power of the Twig templating engine.

How do you use symfony/twig-bundle?

The Symfony/Twig-Bundle can seamlessly be used within your Symfony full-stack framework. However, since the exact usage examples have not been provided in the readme file of the GitHub repository, we recommend following the standard procedure of integrating any bundle into your Symfony application. This generally involves:

  1. Installing the Bundle:
composer require symfony/twig-bundle
  1. Registering the Bundle in your application, usually in the config/bundles.php file:
return [
    //...
    Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
];
  1. You can then make use of Twig templating engine by creating Twig template files (.twig) in your application and rendering them in your controllers like so:
namespace App\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;

class DefaultController extends AbstractController
{
    public function index(): Response
    {
        return $this->render('default/index.html.twig', [
            'some_variable' => 'Some value',
        ]);
    }
}

In the example above, 'default/index.html.twig' should be a Twig template file located in 'templates/default/' directory, with 'some_variable' being available in your Twig template.

Remember that the usage might vary depending on the exact version of Symfony and the specific needs of your project.

Where are the symfony/twig-bundle docs?

The Symfony/Twig-Bundle doesn't have its specific standalone documentation. The main resources and documentation for this particular package are the Symfony documentation, as well as the GitHub issues page and pull request page where developers can report issues and contribute to the project.