use Sonata\AdminBundle\Form\FormMapper; class MyAdmin extends AbstractAdmin { protected function configureFormFields(FormMapper $formMapper) { $formMapper ->add('firstName', null, array('label' => 'First Name')) ->add('lastName', null, array('label' => 'Last Name')); } }This code would create a form with two fields: a text field for the user's first name, and another text field for their last name. The "label" parameter sets the label for each of the fields. This library is a package of the Symfony framework, specifically part of the Sonata Project that focuses on building robust and flexible admin interfaces.