Download the PHP package appaydin/pd-widget without Composer
On this page you can find all versions of the php package appaydin/pd-widget. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download appaydin/pd-widget
More information about appaydin/pd-widget
Files in appaydin/pd-widget
Package pd-widget
Short Description Symfony Simple Widget Bundle
License MIT
Homepage https://github.com/appaydin/pd-widget
Informations about the package pd-widget
pdWidget Bundle
Flexible widget system for Symfony 5.
Installation
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:
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 2: Enable the Bundle
With Symfony 4, the package will be activated automatically. But if something goes wrong, you can install it manually.
Then, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php
file of your project:
Add Widget Routing:
Edit Doctrine Settings (config/packages/doctrine.yaml
):
UserInterface field, enter the class for the existing authorization system.
Step 3: Settings Bundle (Optional)
You can specify the template for the widget container.
Create Your First Widget
Step 1: Create Widget Event Listener
Widgets work with Event. Create Widget with Event Listener
Step 2: Create Widget Template
You can create a Twig template for the widget or can only use text content.
Step 3: Create Widget Services:
Rendering Widgets
The creation process is very simple. You should use widget groups for widget creation.