PHPackages                             sevengroupfrance/sulu-duplicate-articles-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. sevengroupfrance/sulu-duplicate-articles-bundle

ActiveLibrary

sevengroupfrance/sulu-duplicate-articles-bundle
===============================================

v1.2.3(1y ago)0456MITPHP

Since Jul 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/sevenGroupFrance/sulu-duplicate-articles-bundle)[ Packagist](https://packagist.org/packages/sevengroupfrance/sulu-duplicate-articles-bundle)[ RSS](/packages/sevengroupfrance-sulu-duplicate-articles-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)DependenciesVersions (19)Used By (0)

sevengroupfrance/sulu-custom-toggle-bundle
==========================================

[](#sevengroupfrancesulu-custom-toggle-bundle)

Inspired by [this pull request](https://github.com/sulu/sulu-demo/pull/66).

What is this bundle's goal?
---------------------------

[](#what-is-this-bundles-goal)

Importing a custom fonctionality into [sulu](https://github.com/sulu/sulu), in this example, a custom content type.
This bundle will import a custom toggle from the [react-switch](https://www.npmjs.com/package/react-switch) npm package.

[![How the custom toggle looks in sulu's admin](assets/ctb_clone.png)](assets/ctb_clone.png)

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

[](#installation)

1. Go to your `assets/admin` folder and install the react-switch npm package `npm install react-switch`.
2. Download the [package](https://packagist.org/packages/sevengroupfrance/sulu-duplicate-articles-bundle) in your project with the following command line:
    `composer require sevengroupfrance/sulu-duplicate-articles-bundle`.
3. In `config/bundles.php` add the following code:
    `SevenGroupFrance\SuluDuplicateArticlesBundle\DuplicateArticlesBundle::class => ['all' => true]`.
4. In `assets/admin/package.json`, add the following line in the "dependencies" object:
    `"sulu-duplicate-articles-bundle": "file:node_modules/@sulu/vendor/sevengroupfrance/sulu-duplicate-articles-bundle/src/Resources/js"`.
5. In `assets/admin`, `npm install` to initialize the bundle's symlink directory.
6. In `assets/admin/index.js`, add this line:
    `import 'sulu-duplicate-articles-bundle'`.
7. In `assets/admin`, `npm run watch` or `npm run build`
8. In your environment .env, Add the variable taht'll hold the type of contents as defined in your xml in this variable : 'DUPLICATE\_CONTENT\_LIST="content1,content2,content3"'
9. In your config/routes/sulu\_admin.yaml, add the routing logic that'll target your bundle's logic : 'duplicate\_content: path: /admin/api/duplicate-content controller: SevenGroupFrance\\SuluDuplicateArticlesBundle\\Controller\\Admin\\ContentController::duplicateContent

For further customisation, please refer to the [official page](https://www.npmjs.com/package/react-switch)

Use in your tAdmin view
-----------------------

[](#use-in-your-tadmin-view)

Once installed, you can check a any content on the list view page ( only one ) and click the button to start the cloning process [![Cloning process after click](assets/ctb_cloning_process.png)](assets/ctb_cloning_process.png)

The page will then reload and your new content will be available as an unpublished draft named copie " my\_content\_title" [![Final result](assets/ctb_final.png)](assets/ctb_final.png)

Be careful you can for now clone only one type of content at the time and only in the same content list. It may evolve in a later date.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance46

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.8% 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 ~38 days

Recently: every ~160 days

Total

18

Last Release

402d ago

Major Versions

0.6.3 → 1.02023-07-07

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/95850916?v=4)[sevengroupfrance](/maintainers/sevengroupfrance)[@sevenGroupFrance](https://github.com/sevenGroupFrance)

---

Top Contributors

[![Jeynova](https://avatars.githubusercontent.com/u/38108692?v=4)](https://github.com/Jeynova "Jeynova (23 commits)")[![tommysonsylverstone](https://avatars.githubusercontent.com/u/47473393?v=4)](https://github.com/tommysonsylverstone "tommysonsylverstone (1 commits)")

### Embed Badge

![Health badge](/badges/sevengroupfrance-sulu-duplicate-articles-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/sevengroupfrance-sulu-duplicate-articles-bundle/health.svg)](https://phpackages.com/packages/sevengroupfrance-sulu-duplicate-articles-bundle)
```

PHPackages © 2026

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