PHPackages                             vlaim/sonata-clone-action-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. vlaim/sonata-clone-action-bundle

ActiveLibrary[Admin Panels](/categories/admin)

vlaim/sonata-clone-action-bundle
================================

Sonata Admin extension that adds a clone action.

021PHP

Since Jul 18Pushed 1y agoCompare

[ Source](https://github.com/vlaim/SonataCloneActionBundle)[ Packagist](https://packagist.org/packages/vlaim/sonata-clone-action-bundle)[ RSS](/packages/vlaim-sonata-clone-action-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Sonata Admin Clone Action
=========================

[](#sonata-admin-clone-action)

[![Latest Stable Version](https://camo.githubusercontent.com/afb1d5f28f5426733c3532127486d14157d6b0f29da6b030129135ed0d65e9cb/687474703a2f2f706f7365722e707567782e6f72672f6a6f727269742f736f6e6174612d636c6f6e652d616374696f6e2d62756e646c652f76)](https://packagist.org/packages/jorrit/sonata-clone-action-bundle) [![Total Downloads](https://camo.githubusercontent.com/3e01c608bc71f94553dad0d0517ce6b4860b5ff1d616f5075dc3f84d94b865f5/687474703a2f2f706f7365722e707567782e6f72672f6a6f727269742f736f6e6174612d636c6f6e652d616374696f6e2d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/jorrit/sonata-clone-action-bundle) [![Latest Unstable Version](https://camo.githubusercontent.com/d6d95057820c9446c36ed25df4cf152986e491f666d234435721a0c0de1989aa/687474703a2f2f706f7365722e707567782e6f72672f6a6f727269742f736f6e6174612d636c6f6e652d616374696f6e2d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/jorrit/sonata-clone-action-bundle) [![License](https://camo.githubusercontent.com/ec9709656578e2c57f5bf58163b83986e67009641cd3caf37e85f5a0c919a686/687474703a2f2f706f7365722e707567782e6f72672f6a6f727269742f736f6e6174612d636c6f6e652d616374696f6e2d62756e646c652f6c6963656e7365)](https://packagist.org/packages/jorrit/sonata-clone-action-bundle) [![PHP Version Require](https://camo.githubusercontent.com/00c7020c1131a01f66ce7adf9f7f6bad85429ba32cb93cef31f7f5ca423eda7f/687474703a2f2f706f7365722e707567782e6f72672f6a6f727269742f736f6e6174612d636c6f6e652d616374696f6e2d62756e646c652f726571756972652f706870)](https://packagist.org/packages/jorrit/sonata-clone-action-bundle)

Adds a clone action to Sonata Admin. This allows you to add a clone button to your list action that leads to a create form with the values of the cloned item prefilled.

The clone action does not create the clone in the database, this happens only when the create form is submitted.

Installation
------------

[](#installation)

```
$ composer require jorrit/sonata-clone-action-bundle
```

Setup
-----

[](#setup)

The extension is registered just like any other Sonata Admin extension. For more information regarding extensions, see the [Sonata Admin documentation](https://sonata-project.org/bundles/admin/3-x/doc/reference/extensions.html).

### Add to specific admins

[](#add-to-specific-admins)

Add the following code to services.yml to add the extension to one or more admin classes.

Replace `admin1` and `admin2` with the service names of your admin classes.

```
    admin.clone.extension:
        class: Jorrit\SonataCloneActionBundle\Admin\Extension\CloneAdminExtension
        tags:
            - { name: sonata.admin.extension, target: admin1 }
            - { name: sonata.admin.extension, target: admin2 }
```

### Add to all admins

[](#add-to-all-admins)

Add the following code to services.yml to add the extension all admin classes.

```
    admin.clone.extension:
        class: Jorrit\SonataCloneActionBundle\Admin\Extension\CloneAdminExtension
        tags:
            - { name: sonata.admin.extension, global: true }
```

### Add the action to your admin list

[](#add-the-action-to-your-admin-list)

Edit your admin class to add `clone` to the list of actions:

```
    protected function configureListFields(ListMapper $listMapper)
    {
        $listMapper
            ...
            ->add('_action', null, [
                'actions' => [
                    'edit' => [],
                    'delete' => [],
                    'clone' => [],
                ]
            ]);
    }
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 94.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/63e470dd6139c104a2624af36c2eb17436d7d8b1388179c75de96d4b0ff6802d?d=identicon)[vlaim](/maintainers/vlaim)

---

Top Contributors

[![jorrit](https://avatars.githubusercontent.com/u/521449?v=4)](https://github.com/jorrit "jorrit (18 commits)")[![vlaim](https://avatars.githubusercontent.com/u/1304775?v=4)](https://github.com/vlaim "vlaim (1 commits)")

### Embed Badge

![Health badge](/badges/vlaim-sonata-clone-action-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/vlaim-sonata-clone-action-bundle/health.svg)](https://phpackages.com/packages/vlaim-sonata-clone-action-bundle)
```

###  Alternatives

[jeroennoten/laravel-adminlte

Easy AdminLTE integration with Laravel

4.0k4.8M43](/packages/jeroennoten-laravel-adminlte)[dmstr/yii2-adminlte-asset

AdminLTE backend theme asset bundle for Yii 2.0 Framework

1.1k1.8M67](/packages/dmstr-yii2-adminlte-asset)[dwij/laraadmin

LaraAdmin is a Open source Laravel Admin Panel / CMS which can be used as Admin Backend, Data Management Tool or CRM boilerplate for Laravel with features like CRUD Generation, Module Manager, Media, Menus, Backups and much more

1.6k68.7k](/packages/dwij-laraadmin)[filament/spatie-laravel-media-library-plugin

Filament support for `spatie/laravel-medialibrary`.

1764.8M125](/packages/filament-spatie-laravel-media-library-plugin)[bezhansalleh/filament-exceptions

A Simple &amp; Beautiful Pluggable Exception Viewer for FilamentPHP's Admin Panel

193195.9k13](/packages/bezhansalleh-filament-exceptions)[filament/infolists

Easily add beautiful read-only infolists to any Livewire component.

1220.8M36](/packages/filament-infolists)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
