use Symfony\Component\Form\Extension\Core\Type\FormType; use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Form\FormFactory; // Create a form factory $factory = new FormFactory(); // Create a form builder $formBuilder = $factory->createBuilder(FormType::class); // Add form fields $formBuilder ->add('username') ->add('password') ->add('submit', SubmitType::class); // Disable security token $formBuilder->setDisabled(true); // Build the form $form = $formBuilder->getForm(); // Render the form echo $form->createView()->render();In this example, the Symfony Form component is used to create a form with the security token disabled. The `setDisabled(true)` method is used to turn off the security token feature. Package library: The examples do not depend on any external package or library. However, the Symfony Form component is used in the second example.