Registry / web-framework / sonata-project-admin-bundle

sonata-project-admin-bundle

JSON →
library4.43.0phppackagistunverified

The missing Symfony Admin Generator

composer require sonata-project/admin-bundle
INSTALL
IMPORT
SIG · SONATA-PROJECT-ADM
S
sonata-project-admin-bundle
web-frameworkphpv4.43.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AbstractAdmin
use Sonata\AdminBundle\Admin\AbstractAdmin;

Create an admin class for managing entities.

<?php namespace App\Admin; use Sonata\AdminBundle\Admin\AbstractAdmin; use Sonata\AdminBundle\Datagrid\ListMapper; use Sonata\AdminBundle\Datagrid\DatagridMapper; use Sonata\AdminBundle\Form\FormMapper; class PostAdmin extends AbstractAdmin { protected function configureFormFields(FormMapper $form): void { $form->add('title', 'text'); } protected function configureDatagridFilters(DatagridMapper $datagrid): void { $datagrid->add('title'); } protected function configureListFields(ListMapper $list): void { $list->addIdentifier('title'); } }
Debug
Known issues
gotchaRequires Symfony framework and Doctrine ORM.
fix
Ensure Symfony and Doctrine are properly installed and configured.
affects: >=4.0.0
Upgrade
Version history
4.43.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
sonata-project-admin-bundle — pip install sonata-project-admin-bundle · libregistry