PHPackages                             jorrit/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jorrit/sonata-clone-action-bundle

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jorrit/sonata-clone-action-bundle
=================================

Sonata Admin extension that adds a clone action.

v0.10.0(2y ago)76.4k2[1 issues](https://github.com/jorrit/SonataCloneActionBundle/issues)MITPHPPHP ^7.2 || ^8.0

Since Jul 23Pushed 4mo agoCompare

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

READMEChangelog (9)Dependencies (8)Versions (12)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

39

—

LowBetter than 85% of packages

Maintenance51

Moderate activity, may be stable

Popularity28

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~127 days

Recently: every ~233 days

Total

11

Last Release

843d ago

PHP version history (2 changes)v0.1.0PHP ^7.2

v0.9.0PHP ^7.2 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/342d0b43e57b1db1f8f6607f44bfe1874ca340cbdc200bf3695173ee09b0279a?d=identicon)[jorrit](/maintainers/jorrit)

---

Top Contributors

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

---

Tags

clonesonata-admincloneextensionadminsonata

### Embed Badge

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

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k16.7M308](/packages/easycorp-easyadmin-bundle)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sonata-project/doctrine-orm-admin-bundle

Integrate Doctrine ORM into the SonataAdminBundle

46117.7M154](/packages/sonata-project-doctrine-orm-admin-bundle)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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